Searched refs:_n_buckets (Results 1 – 2 of 2) sorted by relevance
204 uint32_t _n_buckets; /* number of buckets */ member215 struct _bucket *__counted_by(_n_buckets) _buckets;302 return (100 * h->_n_entries) / (h->_n_buckets * _CHT_BUCKET_SLOTS); in cuckoo_hashtable_load_factor()420 h->_n_buckets = n_buckets; in cuckoo_hashtable_create()421 h->_capacity = h->_rcapacity = h->_n_buckets * _CHT_BUCKET_SLOTS; in cuckoo_hashtable_create()449 for (i = 0; i < h->_n_buckets; i++) { in cuckoo_hashtable_free()452 sk_free_type_array_counted_by(struct _bucket, h->_n_buckets, h->_buckets); in cuckoo_hashtable_free()466 return h->_n_buckets * _CHT_BUCKET_SLOTS; in cuckoo_hashtable_capacity()473 (h->_n_buckets * sizeof(struct _bucket)); in cuckoo_hashtable_memory_footprint()789 for (uint32_t i = 0; i < h->_n_buckets; i++) {[all …]
749 for i in range(0, cht._n_buckets):