| /freebsd-9-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | hash.c | 61 hash_def_hash(int nbuckets, void *arg) in hash_def_hash() argument 64 return (data % nbuckets); in hash_def_hash() 75 hash_name(int nbuckets, const char *name) in hash_name() argument 89 return (h % nbuckets); in hash_name() 93 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) in hash_new() argument 98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); in hash_new() 99 hash->h_nbuckets = nbuckets; in hash_new()
|
| D | tdata.c | 55 tdesc_layouthash(int nbuckets, void *node) in tdesc_layouthash() argument 107 return (hash_name(nbuckets, name)); in tdesc_layouthash() 109 return (h % nbuckets); in tdesc_layouthash() 129 tdesc_idhash(int nbuckets, void *data) in tdesc_idhash() argument 133 return (tdp->t_id % nbuckets); in tdesc_idhash() 148 tdesc_namehash(int nbuckets, void *data) in tdesc_namehash() argument 165 return (h % nbuckets); in tdesc_namehash()
|
| D | alist.c | 55 alist_hash(int nbuckets, void *arg) in alist_hash() argument 60 return (num % nbuckets); in alist_hash() 72 alist_xnew(int nbuckets, void (*namefree)(void *), in alist_xnew() argument 79 alist->al_elements = hash_new(nbuckets, hashfn, cmpfn); in alist_xnew()
|
| D | iidesc.c | 59 iidesc_hash(int nbuckets, void *arg) in iidesc_hash() argument 65 return (hash_name(nbuckets, ii->ii_name)); in iidesc_hash()
|
| /freebsd-9-stable/contrib/gdb/gdb/ |
| D | dictionary.c | 137 int nbuckets; member 144 int nbuckets; member 187 #define DICT_HASHED_NBUCKETS(d) (d)->data.hashed.nbuckets 356 int nsyms = 0, nbuckets, i; in dict_create_hashed() local 370 nbuckets = DICT_HASHTABLE_SIZE (nsyms); in dict_create_hashed() 371 DICT_HASHED_NBUCKETS (retval) = nbuckets; in dict_create_hashed() 372 buckets = obstack_alloc (obstack, nbuckets * sizeof (struct symbol *)); in dict_create_hashed() 373 memset (buckets, 0, nbuckets * sizeof (struct symbol *)); in dict_create_hashed() 601 int nbuckets = DICT_HASHED_NBUCKETS (dict); in iterator_hashed_advance() local 604 for (i = DICT_ITERATOR_INDEX (iterator) + 1; i < nbuckets; ++i) in iterator_hashed_advance()
|
| /freebsd-9-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| D | dt_strtab.c | 65 uint_t nbuckets = _dtrace_strbuckets; in dt_strtab_create() local 73 sp->str_hash = malloc(nbuckets * sizeof (dt_strhash_t *)); in dt_strtab_create() 78 bzero(sp->str_hash, nbuckets * sizeof (dt_strhash_t *)); in dt_strtab_create() 79 sp->str_hashsz = nbuckets; in dt_strtab_create()
|
| D | dt_aggregate.c | 295 int nbuckets = DTRACE_QUANTIZE_NBUCKETS; in dt_aggregate_quantizedcmp() local 300 for (i = 0; i < nbuckets; i++) { in dt_aggregate_quantizedcmp()
|
| /freebsd-9-stable/contrib/cvs/diff/ |
| D | io.c | 53 static int nbuckets; variable 281 bucket = &buckets[h % nbuckets]; 697 nbuckets = primes[i]; 699 buckets = (int *) xmalloc ((nbuckets + 1) * sizeof (*buckets)); 700 bzero (buckets++, (nbuckets + 1) * sizeof (*buckets));
|
| /freebsd-9-stable/contrib/diff/src/ |
| D | io.c | 56 static size_t nbuckets; variable 390 bucket = &buckets[h % nbuckets]; in find_and_hash_each_line() 844 nbuckets = ((size_t) 1 << i) - prime_offset[i]; in read_files() 845 if (PTRDIFF_MAX / sizeof *buckets <= nbuckets) in read_files() 847 buckets = zalloc ((nbuckets + 1) * sizeof *buckets); in read_files()
|
| /freebsd-9-stable/lib/libelf/ |
| D | libelf_convert.m4 | 547 uint32_t n, nbuckets, nchains, maskwords, shift2, symndx, t32; 555 READ_WORD(src, nbuckets); 563 SWAP_WORD(nbuckets); 570 sz = nbuckets * sizeof(uint32_t) + maskwords * sizeof(uint64_t); 575 gh->gh_nbuckets = nbuckets; 597 for (n = 0; n < nbuckets; n++) { 604 dst += nbuckets * sizeof(uint32_t); 634 uint32_t maskwords, n, nbuckets, nchains, t0, t1, t2, t3, t32; 642 t0 = nbuckets = gh->gh_nbuckets; 680 for (n = 0; n < nbuckets; n++) {
|
| /freebsd-9-stable/sys/netpfil/ipfw/ |
| D | ip_fw_dynamic.c | 476 resize_dynamic_table(struct ip_fw_chain *chain, int nbuckets) in resize_dynamic_table() argument 483 if ((nbuckets > 65536) || (!powerof2(nbuckets))) in resize_dynamic_table() 487 V_curr_dyn_buckets, nbuckets); in resize_dynamic_table() 490 dyn_v = malloc(nbuckets * sizeof(*dyn_v), M_IPFW, in resize_dynamic_table() 493 for (i = 0 ; i < nbuckets; i++) in resize_dynamic_table() 524 k = hash_packet(&q->id, nbuckets); in resize_dynamic_table() 533 V_curr_dyn_buckets = nbuckets; in resize_dynamic_table()
|
| /freebsd-9-stable/sys/boot/common/ |
| D | load_elf.c | 58 Elf_Hashelt nbuckets; member 542 COPYOUT(ef->hashtab, &ef->nbuckets, sizeof(ef->nbuckets)); in __elfN() 545 ef->chains = ef->buckets + ef->nbuckets; in __elfN() 710 COPYOUT(&ef->buckets[hash % ef->nbuckets], &symnum, sizeof(symnum)); in __elfN()
|
| /freebsd-9-stable/lib/libc/db/hash/ |
| D | hash.c | 341 int nbuckets, nsegs, l2; in init_htab() local 351 nbuckets = 1 << l2; in init_htab() 362 hashp->MAX_BUCKET = hashp->LOW_MASK = nbuckets - 1; in init_htab() 363 hashp->HIGH_MASK = (nbuckets << 1) - 1; in init_htab() 367 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1; in init_htab()
|
| /freebsd-9-stable/contrib/bind9/lib/dns/ |
| D | adb.c | 524 static const unsigned nbuckets[] = { 1021, 1531, 2039, 3067, 4093, 6143, variable 556 while (nbuckets[i] != 0 && adb->nentries >= nbuckets[i]) in grow_entries() 558 if (nbuckets[i] != 0) in grow_entries() 559 n = nbuckets[i]; in grow_entries() 711 while (nbuckets[i] != 0 && adb->nnames >= nbuckets[i]) in grow_names() 713 if (nbuckets[i] != 0) in grow_names() 714 n = nbuckets[i]; in grow_names() 2529 adb->nentries = nbuckets[0]; in dns_adb_create() 2549 adb->nnames = nbuckets[0]; in dns_adb_create() 2565 nbuckets[11]); in dns_adb_create() [all …]
|
| D | resolver.c | 472 unsigned int nbuckets; member 8187 for (i = 0; i < res->nbuckets; i++) { in destroy() 8195 res->nbuckets * sizeof(fctxbucket_t)); in destroy() 8360 res->nbuckets = ntasks; in dns_resolver_create() 8533 res->nbuckets * sizeof(fctxbucket_t)); in dns_resolver_create() 8725 for (i = 0; i < res->nbuckets; i++) { in dns_resolver_shutdown() 8908 bucketnum = dns_name_fullhash(name, ISC_FALSE) % res->nbuckets; in dns_resolver_createfetch3()
|
| /freebsd-9-stable/sys/kern/ |
| D | link_elf.c | 84 Elf_Hashelt nbuckets; /* DT_HASH info */ member 500 ef->nbuckets = hashtab[0]; in parse_dynamic() 503 ef->chains = ef->buckets + ef->nbuckets; in parse_dynamic() 1262 if (ef->buckets == NULL || ef->nbuckets == 0) { in link_elf_lookup_symbol() 1269 symnum = ef->buckets[hash % ef->nbuckets]; in link_elf_lookup_symbol()
|
| /freebsd-9-stable/libexec/rtld-elf/ |
| D | rtld.h | 211 unsigned long nbuckets; /* Number of buckets */ member
|
| D | rtld.c | 961 obj->nbuckets = hashtab[0]; in digest_dynamic1() 964 obj->chains = obj->buckets + obj->nbuckets; in digest_dynamic1() 965 obj->valid_hash_sysv = obj->nbuckets > 0 && obj->nchains > 0 && in digest_dynamic1() 3925 for (symnum = obj->buckets[req->hash % obj->nbuckets]; in symlook_obj1_sysv()
|
| /freebsd-9-stable/contrib/binutils/binutils/ |
| D | readelf.c | 7039 bfd_vma nbuckets = 0; in process_symbol_table() local 7085 nbuckets = byte_get (nb, hash_ent_size); in process_symbol_table() 7088 buckets = get_dynamic_data (file, nbuckets, hash_ent_size); in process_symbol_table() 7107 for (hn = 0; hn < nbuckets; hn++) in process_symbol_table() 7372 (unsigned long) nbuckets); in process_symbol_table() 7375 lengths = calloc (nbuckets, sizeof (*lengths)); in process_symbol_table() 7381 for (hn = 0; hn < nbuckets; ++hn) in process_symbol_table() 7398 for (hn = 0; hn < nbuckets; ++hn) in process_symbol_table() 7401 if (nbuckets > 0) in process_symbol_table() 7405 counts[0], (counts[0] * 100.0) / nbuckets); in process_symbol_table() [all …]
|
| /freebsd-9-stable/sys/ia64/ia64/ |
| D | pmap.c | 216 SYSCTL_INT(_machdep_vhpt, OID_AUTO, nbuckets, CTLFLAG_RD,
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
| D | dtrace.c | 1946 int nbuckets = this > nsteps ? nsteps : this; in dtrace_aggregate_llquantize_bucket() local 1966 return (base + (value - last) / (this / nbuckets)); in dtrace_aggregate_llquantize_bucket() 1969 base += nbuckets - (nbuckets / factor); in dtrace_aggregate_llquantize_bucket()
|