Lines Matching refs:idx
149 void SetBit(uint32_t idx) { in SetBit() argument
154 if (idx >= storage_size_ * kWordBits) { in SetBit()
155 EnsureSize(idx); in SetBit()
157 storage_[WordIndex(idx)] |= BitMask(idx); in SetBit()
161 void ClearBit(uint32_t idx) { in ClearBit() argument
163 if (idx < storage_size_ * kWordBits) { in ClearBit()
165 storage_[WordIndex(idx)] &= ~BitMask(idx); in ClearBit()
170 bool IsBitSet(uint32_t idx) const { in IsBitSet() argument
173 return (idx < (storage_size_ * kWordBits)) && IsBitSet(storage_, idx); in IsBitSet()
225 uint32_t GetRawStorageWord(size_t idx) const { in GetRawStorageWord() argument
226 return storage_[idx]; in GetRawStorageWord()
263 static bool IsBitSet(const uint32_t* storage, uint32_t idx) { in IsBitSet() argument
264 return (storage[WordIndex(idx)] & BitMask(idx)) != 0; in IsBitSet()
295 void EnsureSize(uint32_t idx);
298 static constexpr uint32_t WordIndex(uint32_t idx) { in WordIndex() argument
299 return idx >> 5; in WordIndex()
303 static constexpr uint32_t BitMask(uint32_t idx) { in BitMask() argument
304 return 1 << (idx & 0x1f); in BitMask()