Home
last modified time | relevance | path

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

/titanic_50/usr/src/tools/ctf/cvt/
H A Dhash.c44 int h_nbuckets; member
98 hash->h_nbuckets = nbuckets; in hash_new()
108 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_add()
135 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_remove()
145 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_match()
169 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_find_iter()
217 for (i = 0; i < hash->h_nbuckets; i++) { in hash_iter()
234 for (num = 0, i = 0; i < hash->h_nbuckets; i++) in hash_count()
248 for (i = 0; i < hash->h_nbuckets; i++) in hash_free()
267 for (i = 1; i < hash->h_nbuckets; i++) { in hash_stats()
[all …]
/titanic_50/usr/src/common/ctf/
H A Dctf_hash.c46 hp->h_nbuckets = 1; in ctf_hash_create()
50 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ in ctf_hash_create()
54 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()
62 bzero(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()
118 h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets; in ctf_hash_insert()
151 ulong_t h = ctf_hash_compute(key, len) % hp->h_nbuckets; in ctf_hash_lookup()
168 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy()
169 ctf_free(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_destroy()
H A Dctf_impl.h78 ushort_t h_nbuckets; /* number of elements in bucket array */ member