Home | History | Annotate | Download | only in src

Lines Matching refs:SELF

29 #define Sbitset__byteAddress(SELF, INDEX) \
30 (((SELF) + (INDEX) / CHAR_BIT))
40 void Sbitset__delete (Sbitset self);
42 #define Sbitset__test(SELF, INDEX) \
43 ((*Sbitset__byteAddress ((SELF), (INDEX)) & Sbitset__bit_mask (INDEX)) != 0)
45 bool Sbitset__isEmpty (Sbitset self, Sbitset__Index nbits);
47 void Sbitset__fprint(Sbitset self, Sbitset__Index nbits, FILE *file);
49 #define Sbitset__set(SELF, INDEX) \
51 *Sbitset__byteAddress ((SELF), (INDEX)) = \
52 *Sbitset__byteAddress ((SELF), (INDEX)) | Sbitset__bit_mask (INDEX); \
55 #define Sbitset__reset(SELF, INDEX) \
57 *Sbitset__byteAddress ((SELF), (INDEX)) = \
58 *Sbitset__byteAddress ((SELF), (INDEX)) & ~Sbitset__bit_mask (INDEX); \
62 #define Sbitset__zero(SELF, NBITS) \
64 memset (SELF, 0, Sbitset__nbytes (NBITS)); \
68 #define Sbitset__ones(SELF, NBITS) \
70 memset (SELF, UCHAR_MAX, Sbitset__nbytes (NBITS)); \
74 #define Sbitset__or(SELF, OTHER1, OTHER2, NBITS) \
76 Sbitset ptr_self = (SELF); \
84 #define SBITSET__FOR_EACH(SELF, NBITS, ITER, INDEX) \
85 for ((ITER) = (SELF); (ITER) < (SELF) + Sbitset__nbytes (NBITS); ++(ITER)) \
87 for ((INDEX) = ((ITER)-(SELF))*CHAR_BIT; \
88 (INDEX) < (NBITS) && (SELF)+(INDEX)/CHAR_BIT < (ITER)+1; \