Lines Matching refs:INDEX
29 #define Sbitset__byteAddress(SELF, INDEX) \ argument
30 (((SELF) + (INDEX) / CHAR_BIT))
31 #define Sbitset__bit_mask(INDEX) \ argument
32 (1 << (CHAR_BIT - 1 - (INDEX) % CHAR_BIT))
42 #define Sbitset__test(SELF, INDEX) \ argument
43 ((*Sbitset__byteAddress ((SELF), (INDEX)) & Sbitset__bit_mask (INDEX)) != 0)
49 #define Sbitset__set(SELF, INDEX) \ argument
51 *Sbitset__byteAddress ((SELF), (INDEX)) = \
52 *Sbitset__byteAddress ((SELF), (INDEX)) | Sbitset__bit_mask (INDEX); \
55 #define Sbitset__reset(SELF, INDEX) \ argument
57 *Sbitset__byteAddress ((SELF), (INDEX)) = \
58 *Sbitset__byteAddress ((SELF), (INDEX)) & ~Sbitset__bit_mask (INDEX); \
84 #define SBITSET__FOR_EACH(SELF, NBITS, ITER, INDEX) \ argument
87 for ((INDEX) = ((ITER)-(SELF))*CHAR_BIT; \
88 (INDEX) < (NBITS) && (SELF)+(INDEX)/CHAR_BIT < (ITER)+1; \
89 ++(INDEX)) \
90 if (((*ITER) & Sbitset__bit_mask (INDEX)) != 0)