Home
last modified time | relevance | path

Searched refs:num_buckets (Results 1 – 14 of 14) sorted by relevance

/external/mesa3d/src/mesa/program/
Dhash_table.c44 unsigned num_buckets; member
57 hash_table_ctor(unsigned num_buckets, hash_func_t hash, in hash_table_ctor() argument
64 if (num_buckets < 16) { in hash_table_ctor()
65 num_buckets = 16; in hash_table_ctor()
68 ht = malloc(sizeof(*ht) + ((num_buckets - 1) in hash_table_ctor()
73 ht->num_buckets = num_buckets; in hash_table_ctor()
75 for (i = 0; i < num_buckets; i++) { in hash_table_ctor()
100 for (i = 0; i < ht->num_buckets; i++) { in hash_table_clear()
115 const unsigned bucket = hash_value % ht->num_buckets; in get_node()
141 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_insert()
[all …]
Dhash_table.h63 extern struct hash_table *hash_table_ctor(unsigned num_buckets,
/external/boringssl/src/crypto/lhash/
Dlhash.c82 ret->num_buckets = kMinNumBuckets; in lh_new()
83 ret->buckets = OPENSSL_malloc(sizeof(LHASH_ITEM *) * ret->num_buckets); in lh_new()
88 memset(ret->buckets, 0, sizeof(LHASH_ITEM *) * ret->num_buckets); in lh_new()
110 for (i = 0; i < lh->num_buckets; i++) { in lh_free()
139 ret = &lh->buckets[hash % lh->num_buckets]; in get_next_ptr_and_hash()
180 for (i = 0; i < lh->num_buckets; i++) { in lh_rebucket()
191 lh->num_buckets = new_num_buckets; in lh_rebucket()
204 assert(lh->num_buckets >= kMinNumBuckets); in lh_maybe_resize()
205 avg_chain_length = lh->num_items / lh->num_buckets; in lh_maybe_resize()
208 const size_t new_num_buckets = lh->num_buckets * 2; in lh_maybe_resize()
[all …]
/external/v8/src/
Dcounters.cc61 #define HR(name, caption, min, max, num_buckets) \ in Counters() argument
62 name##_ = Histogram(#caption, min, max, num_buckets, isolate); in Counters()
175 #define HR(name, caption, min, max, num_buckets) name##_.Reset(); in ResetHistograms() argument
Dcounters.h176 int num_buckets, in Histogram() argument
181 num_buckets_(num_buckets), in Histogram()
234 int num_buckets, Isolate* isolate) in HistogramTimer() argument
235 : Histogram(name, min, max, num_buckets, isolate), in HistogramTimer()
317 int num_buckets, Isolate* isolate) in AggregatableHistogramTimer() argument
318 : Histogram(name, min, max, num_buckets, isolate) {} in AggregatableHistogramTimer()
727 #define HR(name, caption, min, max, num_buckets) \ argument
836 #define HR(name, caption, min, max, num_buckets) Histogram name##_; argument
Dobjects.cc18684 int num_buckets = capacity / kLoadFactor; in Allocate() local
18686 kHashTableStartIndex + num_buckets + (capacity * kEntrySize), pretenure); in Allocate()
18690 for (int i = 0; i < num_buckets; ++i) { in Allocate()
18693 table->SetNumberOfBuckets(num_buckets); in Allocate()
/external/libdrm/freedreno/
Dfreedreno_device.c48 unsigned int i = dev->num_buckets; in add_bucket()
54 dev->num_buckets++; in add_bucket()
Dfreedreno_bo.c94 for (i = 0; i < dev->num_buckets; i++) { in fd_cleanup_bo_cache()
120 for (i = 0; i < dev->num_buckets; i++) { in get_bucket()
Dfreedreno_priv.h89 int num_buckets; member
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dhash_map.hpp230 void rehash(std::size_t num_buckets) in rehash() argument
232 if (num_buckets == num_buckets_) in rehash()
234 num_buckets_ = num_buckets; in rehash()
/external/libvpx/libvpx/
Drate_hist.c124 int max_buckets, int *num_buckets) { in merge_hist_buckets() argument
126 int buckets = *num_buckets; in merge_hist_buckets()
187 *num_buckets = buckets; in merge_hist_buckets()
/external/boringssl/src/include/openssl/
Dlhash.h136 size_t num_buckets; member
/external/libdrm/intel/
Dintel_bufmgr_gem.c128 int num_buckets; member
409 for (i = 0; i < bufmgr_gem->num_buckets; i++) { in drm_intel_gem_bo_bucket_for_size()
1230 for (i = 0; i < bufmgr_gem->num_buckets; i++) { in drm_intel_gem_cleanup_bo_cache()
1895 for (i = 0; i < bufmgr_gem->num_buckets; i++) { in drm_intel_bufmgr_gem_destroy()
2991 unsigned int i = bufmgr_gem->num_buckets; in add_bucket()
2997 bufmgr_gem->num_buckets++; in add_bucket()
/external/v8/src/crankshaft/
Dhydrogen.h2492 HValue* BuildOrderedHashTableHashToBucket(HValue* hash, HValue* num_buckets);
2495 HValue* num_buckets);
2497 HValue* BuildOrderedHashTableEntryToIndex(HValue* entry, HValue* num_buckets);