Home
last modified time | relevance | path

Searched refs:h_buckets (Results 1 – 4 of 4) sorted by relevance

/dports/misc/rump/buildrump.sh-b914579/src/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dhash.c45 list_t **h_buckets; member
98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); in hash_new()
111 list_add(&hash->h_buckets[bucket], key); in hash_add()
139 (void) list_remove(&hash->h_buckets[bucket], key, in hash_remove()
222 if (hash->h_buckets[i] != NULL) { in hash_iter()
223 if ((cbrc = list_iter(hash->h_buckets[i], fun, in hash_iter()
239 num += list_count(hash->h_buckets[i]); in hash_count()
253 list_free(hash->h_buckets[i], datafree, private); in hash_free()
254 free(hash->h_buckets); in hash_free()
261 int min = list_count(hash->h_buckets[0]); in hash_stats()
[all …]
/dports/misc/rump/buildrump.sh-b914579/src/external/cddl/osnet/dist/common/ctf/
H A Dctf_hash.c49 hp->h_buckets = __UNCONST(_CTF_EMPTY); in ctf_hash_create()
58 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()
61 if (hp->h_buckets == NULL || hp->h_chains == NULL) { in ctf_hash_create()
66 bzero(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()
123 hep->h_next = hp->h_buckets[h]; in ctf_hash_insert()
124 hp->h_buckets[h] = hp->h_free++; in ctf_hash_insert()
157 for (i = hp->h_buckets[h]; i != 0; i = hep->h_next) { in ctf_hash_lookup()
172 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy()
173 ctf_free(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_destroy()
174 hp->h_buckets = NULL; in ctf_hash_destroy()
H A Dctf_impl.h73 ushort_t *h_buckets; /* hash bucket array (chain indices) */ member
/dports/games/NBlood/NBlood-a1689a4/source/build/src/
H A Dpolymer.cpp2308 static hashtable_t h_buckets = { 2048, NULL }; variable
2316 _prbucket *bucketptr = prbuckethead ? (_prbucket *)hash_find(&h_buckets, propstr) : NULL; in polymer_findbucket()
2325 if (h_buckets.items == NULL) in polymer_findbucket()
2326 hash_init(&h_buckets); in polymer_findbucket()
2343 hash_add(&h_buckets, propstr, (intptr_t)bucketptr, 1); in polymer_findbucket()