Lines Matching refs:n_buckets
163 unsigned n_buckets; /* number of buckets */ member
302 static unsigned n_buckets(HashmapBase *h) { in n_buckets() function
303 return h->has_indirect ? h->indirect.n_buckets in n_buckets()
346 return (unsigned) (hash % n_buckets(h)); in base_bucket_hash()
410 ((uint8_t*) storage_ptr(h) + hashmap_type_info[h->type].entry_size * n_buckets(h)); in dib_raw_ptr()
415 : n_buckets(h) + idx - from; in bucket_distance()
450 for ( ; idx < n_buckets(h); idx++) in skip_free_buckets()
499 return (idx + 1U) % n_buckets(h); in next_idx()
503 return (n_buckets(h) + idx - 1U) % n_buckets(h); in prev_idx()
1014 assert(idx < n_buckets(h)); in hashmap_base_put_boldly()
1025 assert(n_entries(h) < n_buckets(h)); in hashmap_base_put_boldly()
1100 old_n_buckets = n_buckets(h); in resize_buckets()
1131 h->indirect.n_buckets = (1U << new_shift) / in resize_buckets()
1151 (n_buckets(h) - old_n_buckets) * hi->entry_size); in resize_buckets()
1155 (n_buckets(h) - old_n_buckets) * sizeof(dib_raw_t)); in resize_buckets()
1208 assert(idx < n_buckets(h)); in base_bucket_scan()
1593 return n_buckets(h); in _hashmap_buckets()