Home
last modified time | relevance | path

Searched refs:bitmap2 (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/tools/lib/
H A Dbitmap.c22 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 …]
/openbmc/linux/lib/
H A Dfind_bit_benchmark.c30 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 …]
H A Dbitmap.c49 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 …]
/openbmc/qemu/util/
H A Dbitmap.c79 const unsigned long *bitmap2, long bits) in slow_bitmap_equal() argument
84 if (bitmap1[k] != bitmap2[k]) { in slow_bitmap_equal()
90 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_equal()
113 const unsigned long *bitmap2, long bits) in slow_bitmap_and() argument
120 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in slow_bitmap_and()
126 const unsigned long *bitmap2, long bits) in slow_bitmap_or() argument
132 dst[k] = bitmap1[k] | bitmap2[k]; in slow_bitmap_or()
137 const unsigned long *bitmap2, long bits) in slow_bitmap_xor() argument
143 dst[k] = bitmap1[k] ^ bitmap2[k]; in slow_bitmap_xor()
148 const unsigned long *bitmap2, long bits) in slow_bitmap_andnot() argument
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D254.out5 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap2", "node": "drive0", "persisten…
62 "name": "bitmap2",
72 "name": "bitmap2",
77 "target": "bitmap2"
83 "name": "bitmap2",
100 "name": "bitmap2",
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c143 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()
/openbmc/qemu/include/qemu/
H A Dbitmap.h86 const unsigned long *bitmap2, long bits);
90 const unsigned long *bitmap2, long bits);
92 const unsigned long *bitmap2, long bits);
94 const unsigned long *bitmap2, long bits);
96 const unsigned long *bitmap2, long bits);
98 const unsigned long *bitmap2, long bits);
/openbmc/linux/tools/include/linux/
H A Dbitmap.h17 const unsigned long *bitmap2, int bits);
19 const unsigned long *bitmap2, unsigned int bits);
21 const unsigned long *bitmap2, unsigned int bits);
24 const unsigned long *bitmap2, unsigned int bits);
/openbmc/linux/include/linux/
H A Dbitmap.h143 const unsigned long *bitmap2, unsigned int nbits);
157 const unsigned long *bitmap2, unsigned int nbits);
159 const unsigned long *bitmap2, unsigned int nbits);
161 const unsigned long *bitmap2, unsigned int nbits);
163 const unsigned long *bitmap2, unsigned int nbits);
168 const unsigned long *bitmap2, unsigned int nbits);
170 const unsigned long *bitmap2, unsigned int nbits);
173 const unsigned long *bitmap2, unsigned int nbits);