Home
last modified time | relevance | path

Searched refs:bucket_index (Results 1 – 6 of 6) sorted by relevance

/external/v8/src/heap/
Dslot-set.h41 int bucket_index, cell_index, bit_index; in Insert() local
42 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Insert()
43 if (bucket[bucket_index] == nullptr) { in Insert()
44 bucket[bucket_index] = AllocateBucket(); in Insert()
46 bucket[bucket_index][cell_index] |= 1u << bit_index; in Insert()
51 int bucket_index, cell_index, bit_index; in Remove() local
52 SlotToIndices(slot_offset, &bucket_index, &cell_index, &bit_index); in Remove()
53 if (bucket[bucket_index] != nullptr) { in Remove()
54 uint32_t cell = bucket[bucket_index][cell_index]; in Remove()
58 bucket[bucket_index][cell_index] ^= bit_mask; in Remove()
[all …]
/external/libchrome/base/metrics/
Dsample_vector.cc43 size_t bucket_index = GetBucketIndex(value); in Accumulate() local
44 subtle::NoBarrier_Store(&counts_[bucket_index], in Accumulate()
45 subtle::NoBarrier_Load(&counts_[bucket_index]) + count); in Accumulate()
51 size_t bucket_index = GetBucketIndex(value); in GetCount() local
52 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCount()
63 Count SampleVector::GetCountAtIndex(size_t bucket_index) const { in GetCountAtIndex()
64 DCHECK(bucket_index < counts_size_); in GetCountAtIndex()
65 return subtle::NoBarrier_Load(&counts_[bucket_index]); in GetCountAtIndex()
Dhistogram.cc169 size_t bucket_index = 1; in InitializeBucketRanges() local
171 ranges->set_range(bucket_index, current); in InitializeBucketRanges()
173 while (bucket_count > ++bucket_index) { in InitializeBucketRanges()
177 log_ratio = (log_max - log_current) / (bucket_count - bucket_index); in InitializeBucketRanges()
186 ranges->set_range(bucket_index, current); in InitializeBucketRanges()
Dsample_vector.h46 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const;
/external/webrtc/webrtc/base/
Dratetracker.cc144 size_t RateTracker::NextBucketIndex(size_t bucket_index) const { in NextBucketIndex()
145 return (bucket_index + 1u) % (bucket_count_ + 1u); in NextBucketIndex()
Dratetracker.h56 size_t NextBucketIndex(size_t bucket_index) const;