Home | History | Annotate | Download | only in lib

Lines Matching refs:bitno

133 /* Set bit BITNO in bitset BSET.  */
135 bitset_set (bitset bset, bitset_bindex bitno)
137 bitset_windex windex = bitno / BITSET_WORD_BITS;
141 bset->b.cdata[offset] |= ((bitset_word) 1 << (bitno % BITSET_WORD_BITS));
143 BITSET_SET_ (bset, bitno);
147 /* Reset bit BITNO in bitset BSET. */
149 bitset_reset (bitset bset, bitset_bindex bitno)
151 bitset_windex windex = bitno / BITSET_WORD_BITS;
155 bset->b.cdata[offset] &= ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS));
157 BITSET_RESET_ (bset, bitno);
161 /* Test bit BITNO in bitset BSET. */
163 bitset_test (bitset bset, bitset_bindex bitno)
165 bitset_windex windex = bitno / BITSET_WORD_BITS;
169 return (bset->b.cdata[offset] >> (bitno % BITSET_WORD_BITS)) & 1;
171 return BITSET_TEST_ (bset, bitno);
175 /* Toggle bit BITNO in bitset BSET and return non-zero if now set. */
176 #define bitset_toggle(bset, bitno) BITSET_TOGGLE_ (bset, bitno)