Home
last modified time | relevance | path

Searched refs:bitmap1 (Results 1 – 3 of 3) sorted by relevance

/tools/lib/
Dbitmap.c21 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_or() argument
28 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
60 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_and() argument
68 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
70 result |= (dst[k] = bitmap1[k] & bitmap2[k] & in __bitmap_and()
75 int __bitmap_equal(const unsigned long *bitmap1, in __bitmap_equal() argument
80 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal()
84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
90 int __bitmap_intersects(const unsigned long *bitmap1, in __bitmap_intersects() argument
95 if (bitmap1[k] & bitmap2[k]) in __bitmap_intersects()
[all …]
/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c143 unsigned long long native, filter1, filter2, bitmap1, bitmap2; in main() local
174 bitmap1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
175 printf("getpid RET_ALLOW 1 filter (bitmap): %llu ns\n", bitmap1); in main()
207 bitmap1 - native); in main()
215 bitmap1 - native - (bitmap2 - bitmap1)); in main()
222 ret |= compare("native", "≤", "1 bitmap", native, le, bitmap1); in main()
231 bitmap1 - native, approx, bitmap2 - native); in main()
237 ret |= compare("entry", "≈", "1 bitmapped", entry, approx, bitmap1 - native); in main()
/tools/include/linux/
Dbitmap.h14 void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
16 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
18 int __bitmap_equal(const unsigned long *bitmap1,
21 int __bitmap_intersects(const unsigned long *bitmap1,