Searched refs:_n_buckets (Results 1 – 2 of 2) sorted by relevance
204 uint32_t _n_buckets; /* number of buckets */ member302 return (100 * h->_n_entries) / (h->_n_buckets * _CHT_BUCKET_SLOTS); in cuckoo_hashtable_load_factor()419 h->_n_buckets = n_buckets; in cuckoo_hashtable_create()420 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(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++) {849 uint32_t curr_capacity = h->_n_buckets * _CHT_BUCKET_SLOTS; in cuckoo_resize()[all …]
749 for i in range(0, cht._n_buckets):