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

/freebsd-9.3-release/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c47 hp->h_nbuckets = 1;
51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */
55 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets);
63 bzero(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets);
119 h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets;
152 ulong_t h = ctf_hash_compute(key, len) % hp->h_nbuckets;
169 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) {
170 ctf_free(hp->h_buckets, sizeof (ushort_t) * hp->h_nbuckets);
H A Dctf_impl.h74 ushort_t h_nbuckets; /* number of elements in bucket array */ member in struct:ctf_hash
/freebsd-9.3-release/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c44 int h_nbuckets; member in struct:hash
99 hash->h_nbuckets = nbuckets;
109 int bucket = hash->h_hashfn(hash->h_nbuckets, key);
137 int bucket = hash->h_hashfn(hash->h_nbuckets, key);
147 int bucket = hash->h_hashfn(hash->h_nbuckets, key);
172 int bucket = hash->h_hashfn(hash->h_nbuckets, key);
221 for (i = 0; i < hash->h_nbuckets; i++) {
238 for (num = 0, i = 0; i < hash->h_nbuckets; i++)
252 for (i = 0; i < hash->h_nbuckets; i++)
271 for (i = 1; i < hash->h_nbuckets;
[all...]

Completed in 165 milliseconds