Home
last modified time | relevance | path

Searched refs:h_nbuckets (Results 1 – 3 of 3) sorted by relevance

/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c44 int h_nbuckets; member
99 hash->h_nbuckets = nbuckets; in hash_new()
109 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_add()
137 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_remove()
147 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_match()
172 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_find_iter()
221 for (i = 0; i < hash->h_nbuckets; i++) { in hash_iter()
238 for (num = 0, i = 0; i < hash->h_nbuckets; i++) in hash_count()
252 for (i = 0; i < hash->h_nbuckets; i++) in hash_free()
271 for (i = 1; i < hash->h_nbuckets; i++) { in hash_stats()
[all …]
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c47 hp->h_nbuckets = 1; in ctf_hash_create()
51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ in ctf_hash_create()
55 hp->h_buckets = ctf_alloc(sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create()
63 bzero(hp->h_buckets, sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create()
119 h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets; in ctf_hash_insert()
152 ulong_t h = ctf_hash_compute(key, len) % hp->h_nbuckets; in ctf_hash_lookup()
169 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy()
170 ctf_free(hp->h_buckets, sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_destroy()
H A Dctf_impl.h75 uint_t h_nbuckets; /* number of elements in bucket array */ member