Home | History | Annotate | Download | only in lib

Lines Matching refs:bitno

134 /* Set bit BITNO in bitset BSET.  */
136 bitset_set (bitset bset, bitset_bindex bitno)
138 bitset_windex windex = bitno / BITSET_WORD_BITS;
142 bset->b.cdata[offset] |= ((bitset_word) 1 << (bitno % BITSET_WORD_BITS));
144 BITSET_SET_ (bset, bitno);
148 /* Reset bit BITNO in bitset BSET. */
150 bitset_reset (bitset bset, bitset_bindex bitno)
152 bitset_windex windex = bitno / BITSET_WORD_BITS;
156 bset->b.cdata[offset] &= ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS));
158 BITSET_RESET_ (bset, bitno);
162 /* Test bit BITNO in bitset BSET. */
164 bitset_test (bitset bset, bitset_bindex bitno)
166 bitset_windex windex = bitno / BITSET_WORD_BITS;
170 return (bset->b.cdata[offset] >> (bitno % BITSET_WORD_BITS)) & 1;
172 return BITSET_TEST_ (bset, bitno);
176 /* Toggle bit BITNO in bitset BSET and return non-zero if now set. */
177 #define bitset_toggle(bset, bitno) BITSET_TOGGLE_ (bset, bitno)