Searched refs:new_num_buckets (Results 1 – 2 of 2) sorted by relevance
157 static void lh_rebucket(_LHASH *lh, const size_t new_num_buckets) { in lh_rebucket() argument161 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() local202 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() local209 if (new_num_buckets < kMinNumBuckets) { in lh_maybe_resize()[all …]
1133 size_type new_num_buckets = std::max<size_type>( in ResizeIfLoadIsOutOfRange() local1135 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() argument1145 GOOGLE_DCHECK_GE(new_num_buckets, kMinTableSize); in Resize()1148 num_buckets_ = new_num_buckets; in Resize()