Home
last modified time | relevance | path

Searched refs:num_buckets (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/libucl/uthash/
H A Duthash.h100 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \
149 (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \
191 HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets, \
222 (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \
244 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \
287 for( _bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; _bkt_i++) { \
445 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \
448 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \
451 ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0); \
453 for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++) \
[all …]
/freebsd/contrib/elftoolchain/common/
H A Duthash.h101 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \
149 (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \
181 HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets, \
212 (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \
234 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \
271 for( _bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; _bkt_i++) { \
658 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \
661 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \
664 ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0); \
666 for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++) \
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCRuntimeV1.h129 bool NeedsUpdate(uint32_t count, uint32_t num_buckets, in NeedsUpdate() argument
131 return m_count != count || m_num_buckets != num_buckets || in NeedsUpdate()
135 void UpdateSignature(uint32_t count, uint32_t num_buckets, in UpdateSignature() argument
138 m_num_buckets = num_buckets; in UpdateSignature()
H A DAppleObjCRuntimeV1.cpp353 const uint32_t num_buckets = data.GetU32(&offset); in UpdateISAToDescriptorMapIfNeeded() local
355 if (m_hash_signature.NeedsUpdate(count, num_buckets, buckets_ptr)) { in UpdateISAToDescriptorMapIfNeeded()
356 m_hash_signature.UpdateSignature(count, num_buckets, buckets_ptr); in UpdateISAToDescriptorMapIfNeeded()
358 const uint32_t data_size = num_buckets * 2 * sizeof(uint32_t); in UpdateISAToDescriptorMapIfNeeded()
365 for (uint32_t bucket_idx = 0; bucket_idx < num_buckets; in UpdateISAToDescriptorMapIfNeeded()
/freebsd/sys/net/route/
H A Dnhgrp.c279 uint32_t num_buckets; in nhgrp_ctl_alloc_default() local
284 num_buckets = 8; in nhgrp_ctl_alloc_default()
285 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(num_buckets); in nhgrp_ctl_alloc_default()
297 CHT_SLIST_INIT(&ctl->gr_head, cht_ptr, num_buckets); in nhgrp_ctl_alloc_default()
H A Dnhop.c80 uint32_t num_buckets, num_items; in nhops_init_rib() local
89 num_buckets = 16; in nhops_init_rib()
90 alloc_size = CHT_SLIST_GET_RESIZE_SIZE(num_buckets); in nhops_init_rib()
92 CHT_SLIST_INIT(&ctl->nh_head, ptr, num_buckets); in nhops_init_rib()
/freebsd/contrib/bearssl/test/
H A Dtest_x509.c202 size_t num_buckets; member
213 ht->num_buckets = 8; in HT_new()
214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new()
215 for (u = 0; u < ht->num_buckets; u ++) { in HT_new()
270 n = ht->num_buckets; in HT_expand()
293 ht->num_buckets = n2; in HT_expand()
304 k = (size_t)(hc & ((uint32_t)ht->num_buckets - 1)); in HT_put()
332 if (ht->size > ht->num_buckets) { in HT_put()
355 k = (size_t)(hc & ((uint32_t)ht->num_buckets - 1)); in HT_get()
369 for (u = 0; u < ht->num_buckets; u ++) { in HT_clear()
/freebsd/sys/netlink/route/
H A Dnexthop.c605 uint32_t num_buckets = 16; in vnet_init_unhops() local
606 size_t alloc_size = CHT_SLIST_GET_RESIZE_SIZE(num_buckets); in vnet_init_unhops()
618 CHT_SLIST_INIT(&ctl->un_head, ptr, num_buckets); in vnet_init_unhops()
/freebsd/sys/dev/ena/
H A Dena.c1814 int num_buckets = rss_getnumbuckets(); in ena_setup_io_intr() local
1827 last_bind = (last_bind + adapter->num_io_queues) % num_buckets; in ena_setup_io_intr()
1854 cur_bind = (cur_bind + 1) % num_buckets; in ena_setup_io_intr()