Searched refs:new_num_buckets (Results 1 – 1 of 1) sorted by relevance
164 static void lh_rebucket(_LHASH *lh, const size_t new_num_buckets) { in lh_rebucket() argument168 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets; in lh_rebucket()169 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) { in lh_rebucket()181 const size_t new_bucket = cur->hash % new_num_buckets; in lh_rebucket()190 lh->num_buckets = new_num_buckets; in lh_rebucket()207 const size_t new_num_buckets = lh->num_buckets * 2; in lh_maybe_resize() local209 if (new_num_buckets > lh->num_buckets) { in lh_maybe_resize()210 lh_rebucket(lh, new_num_buckets); in lh_maybe_resize()214 size_t new_num_buckets = lh->num_buckets / 2; in lh_maybe_resize() local216 if (new_num_buckets < kMinNumBuckets) { in lh_maybe_resize()[all …]