Lines Matching refs:bucket_index

60     int bucket_index, cell_index, bit_index;  in Insert()  local
61 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Insert()
62 Bucket bucket = LoadBucket<access_mode>(&buckets_[bucket_index]); in Insert()
65 if (!SwapInNewBucket<access_mode>(&buckets_[bucket_index], bucket)) { in Insert()
67 bucket = LoadBucket<access_mode>(&buckets_[bucket_index]); in Insert()
73 DCHECK_EQ(bucket, LoadBucket<access_mode>(&buckets_[bucket_index])); in Insert()
83 int bucket_index, cell_index, bit_index; in Contains() local
84 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Contains()
85 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in Contains()
92 int bucket_index, cell_index, bit_index; in Remove() local
93 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Remove()
94 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in Remove()
172 int bucket_index, cell_index, bit_index; in Lookup() local
173 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Lookup()
174 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in Lookup()
192 for (int bucket_index = 0; bucket_index < kBuckets; bucket_index++) { in Iterate() local
193 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in Iterate()
196 int cell_offset = bucket_index * kBitsPerBucket; in Iterate()
220 PreFreeEmptyBucket(bucket_index); in Iterate()
234 for (int bucket_index = 0; bucket_index < kBuckets; bucket_index++) { in PreFreeEmptyBuckets() local
235 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in PreFreeEmptyBuckets()
238 PreFreeEmptyBucket(bucket_index); in PreFreeEmptyBuckets()
245 for (int bucket_index = 0; bucket_index < kBuckets; bucket_index++) { in FreeEmptyBuckets() local
246 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in FreeEmptyBuckets()
249 ReleaseBucket(bucket_index); in FreeEmptyBuckets()
294 void PreFreeEmptyBucket(int bucket_index) { in PreFreeEmptyBucket() argument
295 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in PreFreeEmptyBucket()
299 StoreBucket(&buckets_[bucket_index], nullptr); in PreFreeEmptyBucket()
303 void ReleaseBucket(int bucket_index) { in ReleaseBucket() argument
304 Bucket bucket = LoadBucket(&buckets_[bucket_index]); in ReleaseBucket()
305 StoreBucket(&buckets_[bucket_index], nullptr); in ReleaseBucket()
371 void SlotToIndices(int slot_offset, int* bucket_index, int* cell_index, in SlotToIndices() argument
376 *bucket_index = slot >> kBitsPerBucketLog2; in SlotToIndices()