Lines Matching refs:n_buckets
178 unsigned n_buckets; /* number of buckets */
344 static unsigned n_buckets(HashmapBase *h) {
345 return h->has_indirect ? h->indirect.n_buckets
379 return (unsigned) (h->hash_ops->hash(p, hash_key(h)) % n_buckets(h));
438 (storage_ptr(h) + hashmap_type_info[h->type].entry_size * n_buckets(h));
443 : n_buckets(h) + idx - from;
478 for ( ; idx < n_buckets(h); idx++)
527 return (idx + 1U) % n_buckets(h);
531 return (n_buckets(h) + idx - 1U) % n_buckets(h);
1026 assert(idx < n_buckets(h));
1037 assert(n_entries(h) < n_buckets(h));
1110 old_n_buckets = n_buckets(h);
1141 h->indirect.n_buckets = (1U << new_shift) /
1161 (n_buckets(h) - old_n_buckets) * hi->entry_size);
1165 (n_buckets(h) - old_n_buckets) * sizeof(dib_raw_t));
1218 assert(idx < n_buckets(h));
1606 return n_buckets(h);