Home | History | Annotate | Download | only in qtools

Lines Matching full:bitnum

22   void        SetBit(int bitnum) {
23 assert(bitnum < num_bits_);
24 vector_[bitnum >> 5] |= 1 << (bitnum & 31);
26 void ClearBit(int bitnum) {
27 assert(bitnum < num_bits_);
28 vector_[bitnum >> 5] &= ~(1 << (bitnum & 31));
30 bool GetBit(int bitnum) {
31 assert(bitnum < num_bits_);
32 return (vector_[bitnum >> 5] >> (bitnum & 31)) & 1;