Lines Matching defs:x
51 #define BITSET_COPY(x, y) memcpy( (x), (y), sizeof (x) ) argument
52 #define BITSET_EQUAL(x, y) (memcmp( (x), (y), sizeof (x) ) == 0) argument
53 #define BITSET_ZERO(x) memset( (x), 0, sizeof (x) ) argument
54 #define BITSET_ONES(x) memset( (x), 0xff, sizeof (x) ) argument
55 #define BITSET_SIZE(x) (8 * sizeof(x)) // bitset size in bits argument
62 #define BITSET_TEST(x, b) (((x)[BITSET_BITWORD(b)] & BITSET_BIT(b)) != 0) argument
63 #define BITSET_SET(x, b) ((x)[BITSET_BITWORD(b)] |= BITSET_BIT(b)) argument
64 #define BITSET_CLEAR(x, b) ((x)[BITSET_BITWORD(b)] &= ~BITSET_BIT(b)) argument
72 __bitset_and(BITSET_WORD *r, const BITSET_WORD *x, const BITSET_WORD *y, unsigned n) in __bitset_and()
79 __bitset_or(BITSET_WORD *r, const BITSET_WORD *x, const BITSET_WORD *y, unsigned n) in __bitset_or()
86 __bitset_not(BITSET_WORD *x, unsigned n) in __bitset_not()
93 __bitset_andnot(BITSET_WORD *r, const BITSET_WORD *x, const BITSET_WORD *y, unsigned n) in __bitset_andnot()
99 #define BITSET_AND(r, x, y) \ argument
106 #define BITSET_OR(r, x, y) \ argument
113 #define BITSET_NOT(x) \ argument
116 #define BITSET_ANDNOT(r, x, y) \ argument
124 __bitset_rotate_right(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_rotate_right()
139 __bitset_rotate_left(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_rotate_left()
154 __bitset_shr(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_shr()
178 __bitset_shl(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_shl()
202 #define BITSET_SHR(x, n) \ argument
205 #define BITSET_SHL(x, n) \ argument
210 #define BITSET_TEST_RANGE_INSIDE_WORD(x, b, e) \ argument
214 #define BITSET_SET_RANGE_INSIDE_WORD(x, b, e) \ argument
218 #define BITSET_CLEAR_RANGE_INSIDE_WORD(x, b, e) \ argument
239 #define BITSET_TEST_RANGE(x, b, e) \ argument
258 #define BITSET_SET_RANGE(x, b, e) \ argument
277 #define BITSET_CLEAR_RANGE(x, b, e) \ argument
281 __bitset_prefix_sum(const BITSET_WORD *x, unsigned b, unsigned n) in __bitset_prefix_sum()
302 __bitset_count(const BITSET_WORD *x, unsigned n) in __bitset_count()
307 #define BITSET_PREFIX_SUM(x, b) \ argument
310 #define BITSET_COUNT(x) \ argument
316 __bitset_is_empty(const BITSET_WORD *x, int n) in __bitset_is_empty()
329 __bitset_ffs(const BITSET_WORD *x, int n) in __bitset_ffs()
342 __bitset_last_bit(const BITSET_WORD *x, int n) in __bitset_last_bit()
352 #define BITSET_FFS(x) __bitset_ffs(x, ARRAY_SIZE(x)) argument
353 #define BITSET_LAST_BIT(x) __bitset_last_bit(x, ARRAY_SIZE(x)) argument
354 #define BITSET_LAST_BIT_SIZED(x, size) __bitset_last_bit(x, size) argument
355 #define BITSET_IS_EMPTY(x) __bitset_is_empty(x, ARRAY_SIZE(x)) argument