Searched refs:bitmap2 (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/tools/lib/ |
D | bitmap.c | 22 const unsigned long *bitmap2, int bits) in __bitmap_or() argument 28 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or() 61 const unsigned long *bitmap2, unsigned int bits) 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() 76 const unsigned long *bitmap2, unsigned int bits) 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() 91 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument 95 if (bitmap1[k] & bitmap2[k]) in __bitmap_intersects() [all …]
|
/linux-6.6.21/lib/ |
D | find_bit_benchmark.c | 30 static DECLARE_BITMAP(bitmap2, BITMAP_LEN) __initdata; 52 static int __init test_find_first_and_bit(void *bitmap, const void *bitmap2, unsigned long len) in test_find_first_and_bit() argument 62 i = find_first_and_bit(cp, bitmap2, len); in test_find_first_and_bit() 135 const void *bitmap2, unsigned long len) in test_find_next_and_bit() argument 142 i = find_next_and_bit(bitmap, bitmap2, BITMAP_LEN, i + 1); in test_find_next_and_bit() 156 get_random_bytes(bitmap2, sizeof(bitmap2)); in find_bit_test() 168 test_find_first_and_bit(bitmap, bitmap2, BITMAP_LEN / 2); in find_bit_test() 169 test_find_next_and_bit(bitmap, bitmap2, BITMAP_LEN); in find_bit_test() 174 bitmap_zero(bitmap2, BITMAP_LEN); in find_bit_test() 178 __set_bit(get_random_u32_below(BITMAP_LEN), bitmap2); in find_bit_test() [all …]
|
D | bitmap.c | 49 const unsigned long *bitmap2, unsigned int bits) in __bitmap_equal() argument 53 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal() 57 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal() 65 const unsigned long *bitmap2, in __bitmap_or_equal() argument 73 if ((bitmap1[k] | bitmap2[k]) != bitmap3[k]) in __bitmap_or_equal() 80 tmp = (bitmap1[k] | bitmap2[k]) ^ bitmap3[k]; in __bitmap_or_equal() 241 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument 248 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and() 250 result |= (dst[k] = bitmap1[k] & bitmap2[k] & in __bitmap_and() 257 const unsigned long *bitmap2, unsigned int bits) in __bitmap_or() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/seccomp/ |
D | seccomp_benchmark.c | 143 unsigned long long native, filter1, filter2, bitmap1, bitmap2; in main() local 181 bitmap2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main() 182 printf("getpid RET_ALLOW 2 filters (bitmap): %llu ns\n", bitmap2); in main() 209 bitmap2 - native); in main() 215 bitmap1 - native - (bitmap2 - bitmap1)); in main() 231 bitmap1 - native, approx, bitmap2 - native); in main() 238 ret |= compare("entry", "≈", "2 bitmapped", entry, approx, bitmap2 - native); in main()
|
/linux-6.6.21/tools/include/linux/ |
D | bitmap.h | 16 const unsigned long *bitmap2, int bits); 18 const unsigned long *bitmap2, unsigned int bits); 20 const unsigned long *bitmap2, unsigned int bits); 23 const unsigned long *bitmap2, unsigned int bits);
|
/linux-6.6.21/include/linux/ |
D | bitmap.h | 139 const unsigned long *bitmap2, unsigned int nbits); 153 const unsigned long *bitmap2, unsigned int nbits); 155 const unsigned long *bitmap2, unsigned int nbits); 157 const unsigned long *bitmap2, unsigned int nbits); 159 const unsigned long *bitmap2, unsigned int nbits); 164 const unsigned long *bitmap2, unsigned int nbits); 166 const unsigned long *bitmap2, unsigned int nbits); 169 const unsigned long *bitmap2, unsigned int nbits);
|