Lines Matching refs:idx
137 void SetBit(uint32_t idx) { in SetBit() argument
142 if (idx >= storage_size_ * kWordBits) { in SetBit()
143 EnsureSize(idx); in SetBit()
145 storage_[WordIndex(idx)] |= BitMask(idx); in SetBit()
149 void ClearBit(uint32_t idx) { in ClearBit() argument
151 if (idx < storage_size_ * kWordBits) { in ClearBit()
153 storage_[WordIndex(idx)] &= ~BitMask(idx); in ClearBit()
158 bool IsBitSet(uint32_t idx) const { in IsBitSet() argument
161 return (idx < (storage_size_ * kWordBits)) && IsBitSet(storage_, idx); in IsBitSet()
213 uint32_t GetRawStorageWord(size_t idx) const { in GetRawStorageWord() argument
214 return storage_[idx]; in GetRawStorageWord()
240 static bool IsBitSet(const uint32_t* storage, uint32_t idx) { in IsBitSet() argument
241 return (storage[WordIndex(idx)] & BitMask(idx)) != 0; in IsBitSet()
272 void EnsureSize(uint32_t idx);
275 static constexpr uint32_t WordIndex(uint32_t idx) { in WordIndex() argument
276 return idx >> 5; in WordIndex()
280 static constexpr uint32_t BitMask(uint32_t idx) { in BitMask() argument
281 return 1 << (idx & 0x1f); in BitMask()