Home
last modified time | relevance | path

Searched refs:bucket_index (Results 1 - 9 of 9) sorted by relevance

/third_party/node/deps/v8/src/heap/
H A Dslot-set.h58 void Insert(size_t bucket_index, size_t buckets) { in Insert() argument
60 InsertAllocated(bucket_index); in Insert()
61 } else if (bucket_index + 1 < kBitsPerWord) { in Insert()
62 bitmap_ |= static_cast<uintptr_t>(1) << (bucket_index + 1); in Insert()
65 InsertAllocated(bucket_index); in Insert()
69 bool Contains(size_t bucket_index) { in Contains() argument
71 size_t word_idx = bucket_index / kBitsPerWord; in Contains()
74 (static_cast<uintptr_t>(1) << (bucket_index % kBitsPerWord)); in Contains()
75 } else if (bucket_index + 1 < kBitsPerWord) { in Contains()
76 return bitmap_ & (static_cast<uintptr_t>(1) << (bucket_index in Contains()
106 InsertAllocated(size_t bucket_index) InsertAllocated() argument
205 size_t bucket_index; Insert() local
229 size_t bucket_index; Contains() local
239 size_t bucket_index; Remove() local
321 size_t bucket_index; Lookup() local
511 FreeBucketIfEmpty(size_t bucket_index) FreeBucketIfEmpty() argument
535 ReleaseBucket(size_t bucket_index) ReleaseBucket() argument
549 LoadBucket(size_t bucket_index) LoadBucket() argument
563 StoreBucket(size_t bucket_index, Bucket* value) StoreBucket() argument
568 SwapInNewBucket(size_t bucket_index, Bucket* value) SwapInNewBucket() argument
581 SlotToIndices(size_t slot_offset, size_t* bucket_index, int* cell_index, int* bit_index) SlotToIndices() argument
592 bucket(size_t bucket_index) bucket() argument
[all...]
/third_party/node/deps/histogram/src/
H A Dhdr_histogram.c174 static int32_t get_sub_bucket_index(int64_t value, int32_t bucket_index, int32_t unit_magnitude) in get_sub_bucket_index() argument
176 return (int32_t)(value >> (bucket_index + unit_magnitude)); in get_sub_bucket_index()
179 static int32_t counts_index(const struct hdr_histogram* h, int32_t bucket_index, int32_t sub_bucket_index) in counts_index() argument
182 /* (The following is the equivalent of ((bucket_index + 1) * subBucketHalfCount) ): */ in counts_index()
183 int32_t bucket_base_index = (bucket_index + 1) << h->sub_bucket_half_count_magnitude; in counts_index()
190 static int64_t value_from_index(int32_t bucket_index, int32_t sub_bucket_index, int32_t unit_magnitude) in value_from_index() argument
192 return ((int64_t) sub_bucket_index) << (bucket_index + unit_magnitude); in value_from_index()
197 int32_t bucket_index = get_bucket_index(h, value); in counts_index_for() local
198 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in counts_index_for()
200 return counts_index(h, bucket_index, sub_bucket_inde in counts_index_for()
205 int32_t bucket_index = (index >> h->sub_bucket_half_count_magnitude) - 1; hdr_value_at_index() local
219 int32_t bucket_index = get_bucket_index(h, value); hdr_size_of_equivalent_value_range() local
225 size_of_equivalent_value_range_given_bucket_indices( const struct hdr_histogram *h, int32_t bucket_index, int32_t sub_bucket_index) size_of_equivalent_value_range_given_bucket_indices() argument
236 int32_t bucket_index = get_bucket_index(h, value); lowest_equivalent_value() local
241 lowest_equivalent_value_given_bucket_indices( const struct hdr_histogram *h, int32_t bucket_index, int32_t sub_bucket_index) lowest_equivalent_value_given_bucket_indices() argument
826 const int32_t bucket_index = get_bucket_index(iter->h, value); move_next() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_cache.c86 struct list_head *cache = &mgr->buckets[entry->bucket_index]; in pb_cache_add_buffer()
149 unsigned bucket_index) in pb_cache_reclaim_buffer()
157 assert(bucket_index < mgr->num_heaps); in pb_cache_reclaim_buffer()
158 struct list_head *cache = &mgr->buckets[bucket_index]; in pb_cache_reclaim_buffer()
251 struct pb_buffer *buf, unsigned bucket_index) in pb_cache_init_entry()
253 assert(bucket_index < mgr->num_heaps); in pb_cache_init_entry()
258 entry->bucket_index = bucket_index; in pb_cache_init_entry()
265 * @param num_heaps Number of separate caches/buckets indexed by bucket_index
147 pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size, unsigned alignment, unsigned usage, unsigned bucket_index) pb_cache_reclaim_buffer() argument
250 pb_cache_init_entry(struct pb_cache *mgr, struct pb_cache_entry *entry, struct pb_buffer *buf, unsigned bucket_index) pb_cache_init_entry() argument
H A Dpb_cache.h46 unsigned bucket_index; member
73 unsigned bucket_index);
76 struct pb_buffer *buf, unsigned bucket_index);
/third_party/rust/crates/aho-corasick/src/packed/teddy/
H A Dcompile.rs283 for (bucket_index, bucket) in self.buckets.iter().enumerate() { in compile()
288 mask.add_slim(bucket_index as u8, pat.bytes()[i]); in compile()
290 mask.add_fat(bucket_index as u8, pat.bytes()[i]); in compile()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
H A Dlog_uniform_int_distribution_test.cc149 const auto bucket_index = [base_log, is_2, &param](int32_t x) { in ChiSquaredTestImpl() local
155 const int max_bucket = bucket_index(param.max()); // inclusive in ChiSquaredTestImpl()
167 int bucket = bucket_index(sample); in ChiSquaredTestImpl()
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_bo.c148 unsigned bucket_index = util_logbase2(size); in lima_bucket_index() local
152 bucket_index = CLAMP(bucket_index, MIN_BO_CACHE_BUCKET, in lima_bucket_index()
156 return (bucket_index - MIN_BO_CACHE_BUCKET); in lima_bucket_index()
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_bo.c163 unsigned bucket_index = util_logbase2(size); in pan_bucket_index() local
168 bucket_index = CLAMP(bucket_index, MIN_BO_CACHE_BUCKET, in pan_bucket_index()
172 return (bucket_index - MIN_BO_CACHE_BUCKET); in pan_bucket_index()
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-internal-gen.cc216 TNode<WordT> bucket_index = in LoadBucket() local
220 WordShl(bucket_index, kSystemPointerSizeLog2))); in LoadBucket()

Completed in 9 milliseconds