Home | History | Annotate | Download | only in src

Lines Matching refs:NBITS

27 #define Sbitset__nbytes(NBITS) \
28 (((NBITS) + CHAR_BIT - 1) / CHAR_BIT)
33 #define Sbitset__last_byte_mask(NBITS) \
34 (UCHAR_MAX << (CHAR_BIT - 1 - ((NBITS) - 1) % CHAR_BIT))
36 /* nbits must not be 0. */
37 Sbitset Sbitset__new (Sbitset__Index nbits);
38 Sbitset Sbitset__new_on_obstack (Sbitset__Index nbits,
45 bool Sbitset__isEmpty (Sbitset self, Sbitset__Index nbits);
47 void Sbitset__fprint(Sbitset self, Sbitset__Index nbits, FILE *file);
61 /* NBITS is the size of the bitset. More than NBITS bits might be reset. */
62 #define Sbitset__zero(SELF, NBITS) \
64 memset (SELF, 0, Sbitset__nbytes (NBITS)); \
67 /* NBITS is the size of the bitset. More than NBITS bits might be set. */
68 #define Sbitset__ones(SELF, NBITS) \
70 memset (SELF, UCHAR_MAX, Sbitset__nbytes (NBITS)); \
73 /* NBITS is the size of every bitset. More than NBITS bits might be set. */
74 #define Sbitset__or(SELF, OTHER1, OTHER2, NBITS) \
79 Sbitset end_self = ptr_self + Sbitset__nbytes (NBITS); \
84 #define SBITSET__FOR_EACH(SELF, NBITS, ITER, INDEX) \
85 for ((ITER) = (SELF); (ITER) < (SELF) + Sbitset__nbytes (NBITS); ++(ITER)) \
88 (INDEX) < (NBITS) && (SELF)+(INDEX)/CHAR_BIT < (ITER)+1; \