Lines Matching refs:idx

124   uint32_t idx;  in Intersect()  local
125 for (idx = 0; idx < min_size; idx++) { in Intersect()
126 storage_[idx] &= src->GetRawStorageWord(idx); in Intersect()
133 for (; idx < storage_size_; idx++) { in Intersect()
134 storage_[idx] = 0; in Intersect()
161 for (uint32_t idx = 0; idx < src_size; idx++) { in Union() local
162 uint32_t existing = storage_[idx]; in Union()
163 uint32_t update = existing | src->GetRawStorageWord(idx); in Union()
166 storage_[idx] = update; in Union()
195 uint32_t idx = 0; in UnionIfNotIn() local
196 for (; idx < std::min(not_in_size, union_with_size); idx++) { in UnionIfNotIn()
197 uint32_t existing = storage_[idx]; in UnionIfNotIn()
199 (union_with->GetRawStorageWord(idx) & ~not_in->GetRawStorageWord(idx)); in UnionIfNotIn()
202 storage_[idx] = update; in UnionIfNotIn()
206 for (; idx < union_with_size; idx++) { in UnionIfNotIn()
207 uint32_t existing = storage_[idx]; in UnionIfNotIn()
208 uint32_t update = existing | union_with->GetRawStorageWord(idx); in UnionIfNotIn()
211 storage_[idx] = update; in UnionIfNotIn()
227 for (uint32_t idx = 0; idx < min_size; idx++) { in Subtract() local
228 storage_[idx] &= (~(src->GetRawStorageWord(idx))); in Subtract()
255 uint32_t idx; in SetInitialBits() local
257 for (idx = 0; idx < WordIndex(num_bits); idx++) { in SetInitialBits()
258 storage_[idx] = std::numeric_limits<uint32_t>::max(); in SetInitialBits()
264 storage_[idx] = (1U << rem_num_bits) - 1; in SetInitialBits()
265 ++idx; in SetInitialBits()
269 for (; idx < storage_size_; idx++) { in SetInitialBits()
270 storage_[idx] = 0; in SetInitialBits()
276 for (int idx = max - 1; idx >= 0; idx--) { in GetHighestBitSet() local
278 uint32_t value = storage_[idx]; in GetHighestBitSet()
282 return 31 - CLZ(value) + (idx * kWordBits); in GetHighestBitSet()
348 void BitVector::EnsureSize(uint32_t idx) { in EnsureSize() argument
349 if (idx >= storage_size_ * kWordBits) { in EnsureSize()
350 DCHECK(expandable_) << "Attempted to expand a non-expandable bitmap to position " << idx; in EnsureSize()
353 uint32_t new_size = BitsToWords(idx + 1); in EnsureSize()