Searched refs:nbuckets (Results 1 - 17 of 17) sorted by relevance

/freebsd-10.1-release/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c61 hash_def_hash(int nbuckets, void *arg) argument
64 return (data % nbuckets);
75 hash_name(int nbuckets, const char *name) argument
89 return (h % nbuckets);
93 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) argument
98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets);
99 hash->h_nbuckets = nbuckets;
H A Dalist.c55 alist_hash(int nbuckets, void *arg) argument
60 return (num % nbuckets);
72 alist_xnew(int nbuckets, void (*namefree)(void *), argument
79 alist->al_elements = hash_new(nbuckets, hashfn, cmpfn);
H A Dtdata.c55 tdesc_layouthash(int nbuckets, void *node) argument
107 return (hash_name(nbuckets, name));
109 return (h % nbuckets);
129 tdesc_idhash(int nbuckets, void *data) argument
133 return (tdp->t_id % nbuckets);
148 tdesc_namehash(int nbuckets, void *data) argument
165 return (h % nbuckets);
H A Diidesc.c59 iidesc_hash(int nbuckets, void *arg) argument
65 return (hash_name(nbuckets, ii->ii_name));
/freebsd-10.1-release/contrib/gdb/gdb/
H A Ddictionary.c137 int nbuckets; member in struct:dictionary_hashed
144 int nbuckets; member in struct:dictionary_hashed_expandable
187 #define DICT_HASHED_NBUCKETS(d) (d)->data.hashed.nbuckets
356 int nsyms = 0, nbuckets, i; local
370 nbuckets = DICT_HASHTABLE_SIZE (nsyms);
371 DICT_HASHED_NBUCKETS (retval) = nbuckets;
372 buckets = obstack_alloc (obstack, nbuckets * sizeof (struct symbol *));
373 memset (buckets, 0, nbuckets * sizeof (struct symbol *));
601 int nbuckets = DICT_HASHED_NBUCKETS (dict); local
604 for (i = DICT_ITERATOR_INDEX (iterator) + 1; i < nbuckets;
[all...]
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_strtab.c65 uint_t nbuckets = _dtrace_strbuckets; local
73 sp->str_hash = malloc(nbuckets * sizeof (dt_strhash_t *));
78 bzero(sp->str_hash, nbuckets * sizeof (dt_strhash_t *));
79 sp->str_hashsz = nbuckets;
H A Ddt_aggregate.c295 int nbuckets = DTRACE_QUANTIZE_NBUCKETS; local
300 for (i = 0; i < nbuckets; i++) {
/freebsd-10.1-release/contrib/diff/src/
H A Dio.c57 static size_t nbuckets;
394 bucket = &buckets[h % nbuckets];
851 nbuckets = ((size_t) 1 << i) - prime_offset[i];
852 if (PTRDIFF_MAX / sizeof *buckets <= nbuckets)
854 buckets = zalloc ((nbuckets + 1) * sizeof *buckets);
56 static size_t nbuckets; variable
/freebsd-10.1-release/sys/netpfil/ipfw/
H A Dip_fw_dynamic.c476 resize_dynamic_table(struct ip_fw_chain *chain, int nbuckets) argument
483 if ((nbuckets > 65536) || (!powerof2(nbuckets)))
487 V_curr_dyn_buckets, nbuckets);
490 dyn_v = malloc(nbuckets * sizeof(ipfw_dyn_rule), M_IPFW,
493 for (i = 0 ; i < nbuckets; i++)
524 k = hash_packet(&q->id, nbuckets);
533 V_curr_dyn_buckets = nbuckets;
/freebsd-10.1-release/lib/libc/db/hash/
H A Dhash.c340 int nbuckets, nsegs, l2; local
350 nbuckets = 1 << l2;
361 hashp->MAX_BUCKET = hashp->LOW_MASK = nbuckets - 1;
362 hashp->HIGH_MASK = (nbuckets << 1) - 1;
366 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1;
/freebsd-10.1-release/sys/boot/common/
H A Dload_elf.c58 Elf_Hashelt nbuckets; member in struct:elf_file
556 COPYOUT(ef->hashtab, &ef->nbuckets, sizeof(ef->nbuckets));
559 ef->chains = ef->buckets + ef->nbuckets;
724 COPYOUT(&ef->buckets[hash % ef->nbuckets], &symnum, sizeof(symnum));
/freebsd-10.1-release/libexec/rtld-elf/
H A Drtld.h211 unsigned long nbuckets; /* Number of buckets */ member in struct:Struct_Obj_Entry
H A Drtld.c959 obj->nbuckets = hashtab[0];
962 obj->chains = obj->buckets + obj->nbuckets;
963 obj->valid_hash_sysv = obj->nbuckets > 0 && obj->nchains > 0 &&
3922 for (symnum = obj->buckets[req->hash % obj->nbuckets];
/freebsd-10.1-release/sys/kern/
H A Dlink_elf.c84 Elf_Hashelt nbuckets; /* DT_HASH info */ member in struct:elf_file
500 ef->nbuckets = hashtab[0];
503 ef->chains = ef->buckets + ef->nbuckets;
1239 if (ef->buckets == NULL || ef->nbuckets == 0) {
1246 symnum = ef->buckets[hash % ef->nbuckets];
/freebsd-10.1-release/contrib/binutils/binutils/
H A Dreadelf.c7042 bfd_vma nbuckets = 0;
7088 nbuckets = byte_get (nb, hash_ent_size);
7091 buckets = get_dynamic_data (file, nbuckets, hash_ent_size);
7110 for (hn = 0; hn < nbuckets; hn++)
7375 (unsigned long) nbuckets);
7378 lengths = calloc (nbuckets, sizeof (*lengths));
7384 for (hn = 0; hn < nbuckets; ++hn)
7401 for (hn = 0; hn < nbuckets; ++hn)
7404 if (nbuckets > 0)
7408 counts[0], (counts[0] * 100.0) / nbuckets);
7039 bfd_vma nbuckets = 0; local
[all...]
/freebsd-10.1-release/sys/ia64/ia64/
H A Dpmap.c240 SYSCTL_INT(_machdep_vhpt, OID_AUTO, nbuckets, CTLFLAG_RD,
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c2254 int nbuckets = this > nsteps ? nsteps : this; local
2274 return (base + (value - last) / (this / nbuckets));
2277 base += nbuckets - (nbuckets / factor);

Completed in 284 milliseconds