Home
last modified time | relevance | path

Searched refs:new_num_buckets (Results 1 – 2 of 2) sorted by relevance

/external/boringssl/src/crypto/lhash/
Dlhash.c157 static void lh_rebucket(_LHASH *lh, const size_t new_num_buckets) { in lh_rebucket() argument
161 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets; in lh_rebucket()
162 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) { in lh_rebucket()
174 const size_t new_bucket = cur->hash % new_num_buckets; in lh_rebucket()
183 lh->num_buckets = new_num_buckets; in lh_rebucket()
200 const size_t new_num_buckets = lh->num_buckets * 2; in lh_maybe_resize() local
202 if (new_num_buckets > lh->num_buckets) { in lh_maybe_resize()
203 lh_rebucket(lh, new_num_buckets); in lh_maybe_resize()
207 size_t new_num_buckets = lh->num_buckets / 2; in lh_maybe_resize() local
209 if (new_num_buckets < kMinNumBuckets) { in lh_maybe_resize()
[all …]
/external/protobuf/src/google/protobuf/
Dmap.h1133 size_type new_num_buckets = std::max<size_type>( in ResizeIfLoadIsOutOfRange() local
1135 if (new_num_buckets != num_buckets_) { in ResizeIfLoadIsOutOfRange()
1136 Resize(new_num_buckets); in ResizeIfLoadIsOutOfRange()
1144 void Resize(size_t new_num_buckets) { in Resize() argument
1145 GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize); in Resize()
1148 num_buckets_ = new_num_buckets; in Resize()