D | Sbitset.h | 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 [all …]
|