| /netbsd-src/external/mpl/bind/dist/lib/isc/ |
| H A D | ht.c | 48 uint32_t hashval; 74 const uint32_t keysize, const uint32_t hashval, const uint8_t idx); 77 const uint32_t hashval, const uint8_t idx, void *value); 80 const uint32_t hashval, const uint8_t idx); 100 isc__ht_node_match(isc_ht_node_t *node, const uint32_t hashval, 102 return node->hashval == hashval && node->keysize == keysize && 184 uint32_t hash = hash_32(node->hashval, in hashtable_rehash() 287 const uint32_t hashval, const uint8_t idx, void *value) { in isc_ht_init() 291 hash = hash_32(hashval, h in isc_ht_init() 47 uint32_t hashval; global() member 141 isc__ht_node_match(isc_ht_node_t * node,const uint32_t hashval,const uint8_t * key,uint32_t keysize,bool case_sensitive) isc__ht_node_match() argument 330 isc__ht_add(isc_ht_t * ht,const unsigned char * key,const uint32_t keysize,const uint32_t hashval,const uint8_t idx,void * value) isc__ht_add() argument 353 uint32_t hashval; isc_ht_add() local 379 isc__ht_find(const isc_ht_t * ht,const unsigned char * key,const uint32_t keysize,const uint32_t hashval,const uint8_t idx) isc__ht_find() argument 409 uint32_t hashval; isc_ht_find() local 431 isc__ht_delete(isc_ht_t * ht,const unsigned char * key,const uint32_t keysize,const uint32_t hashval,const uint8_t idx) isc__ht_delete() argument 461 uint32_t hashval; isc_ht_delete() local [all...] |
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/ |
| H A D | ht.c | 47 uint32_t hashval; member 73 const uint32_t keysize, const uint32_t hashval, const uint8_t idx); 76 const uint32_t hashval, const uint8_t idx, void *value); 79 const uint32_t hashval, const uint8_t idx); 141 isc__ht_node_match(isc_ht_node_t *node, const uint32_t hashval, in isc__ht_node_match() argument 143 return (node->hashval == hashval && node->keysize == keysize && in isc__ht_node_match() 224 uint32_t hash = hash_32(node->hashval, in hashtable_rehash_one() 330 const uint32_t hashval, const uint8_t idx, void *value) { in isc__ht_add() argument 334 hash = hash_32(hashval, ht->hashbits[idx]); in isc__ht_add() 339 .hashval = hashval, in isc__ht_add() [all …]
|
| /netbsd-src/games/battlestar/ |
| H A D | parse.c | 65 int hashval = 0; in hash() local 68 hashval += *s++; in hash() 69 hashval *= HASHMUL; in hash() 70 hashval &= HASHMASK; in hash() 72 return hashval; in hash() 89 int hashval; in install() local 92 hashval = hash(wp->string); in install() 93 wp->next = hashtab[hashval]; in install() 94 hashtab[hashval] = wp; in install()
|
| /netbsd-src/external/bsd/flex/dist/src/ |
| H A D | sym.c | 163 int hashval; in hashfunct() local 166 hashval = 0; in hashfunct() 170 hashval = (hashval << 1) + (unsigned char) str[locstr++]; in hashfunct() 171 hashval %= hash_size; in hashfunct() 174 return hashval; in hashfunct()
|
| H A D | dfa.c | 233 int numstates = *ns_addr, nacc, hashval, transsym, nfaccnum; in epsclosure() local 273 hashval += state; \ in epsclosure() 290 nacc = stkend = hashval = 0; in epsclosure() 301 hashval += ns; in epsclosure() 336 *hv_addr = hashval; in epsclosure() 375 int sym, hashval, numstates, dsize; in ntod() local 572 &hashval); in ntod() 574 if (snstods (nset, numstates, accset, nacc, hashval, &ds)) { in ntod() 625 &hashval); in ntod() 629 hashval, &newds)) { in ntod() [all …]
|
| /netbsd-src/lib/libc/citrus/ |
| H A D | citrus_hash.h | 44 #define _CITRUS_HASH_INSERT(head, elm, field, hashval) \ argument 45 LIST_INSERT_HEAD(&(head)->chh_table[hashval], elm, field) 46 #define _CITRUS_HASH_SEARCH(head, elm, field, matchfunc, key, hashval) \ argument 48 LIST_FOREACH((elm), &(head)->chh_table[hashval], field) { \
|
| H A D | citrus_db.c | 103 uint32_t hashval, num_entries; in _citrus_db_lookup() local 119 hashval = dl->dl_hashval; in _citrus_db_lookup() 124 hashval = in _citrus_db_lookup() 128 hashval * _CITRUS_DB_ENTRY_SIZE; in _citrus_db_lookup() 130 dl->dl_hashval = hashval; in _citrus_db_lookup() 152 if (be32toh(dex->dex_hash_value) != hashval) in _citrus_db_lookup()
|
| H A D | citrus_mapper.c | 326 int hashval; in _citrus_mapper_open() local 331 hashval = hash_func(mapname); in _citrus_mapper_open() 333 hashval); in _citrus_mapper_open() 362 _CITRUS_HASH_INSERT(&ma->ma_cache, cm, cm_entry, hashval); in _citrus_mapper_open()
|
| H A D | citrus_iconv.c | 263 int hashval; in get_shared() local 272 hashval = hash_func(convname); in get_shared() 274 convname, hashval); in get_shared() 291 _CITRUS_HASH_INSERT(&shared_pool, ci, ci_hash_entry, hashval); in get_shared()
|
| /netbsd-src/external/bsd/elftoolchain/dist/common/ |
| H A D | uthash.h | 156 #define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \ argument 161 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _hf_bkt); \ 162 if (HASH_BLOOM_TEST((head)->hh.tbl, hashval) != 0) { \ 163 …IND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], keyptr, keylen, hashval, out); \ 247 #define HASH_REPLACE_BYHASHVALUE_INORDER(hh,head,fieldname,keylen_in,hashval,add,replaced,cmpfcn) \ argument 250 HASH_FIND_BYHASHVALUE(hh, head, &((add)->fieldname), keylen_in, hashval, replaced); \ 254 …HASH_ADD_KEYPTR_BYHASHVALUE_INORDER(hh, head, &((add)->fieldname), keylen_in, hashval, add, cmpfcn… 257 #define HASH_REPLACE_BYHASHVALUE(hh,head,fieldname,keylen_in,hashval,add,replaced) \ argument 260 HASH_FIND_BYHASHVALUE(hh, head, &((add)->fieldname), keylen_in, hashval, replaced); \ 264 HASH_ADD_KEYPTR_BYHASHVALUE(hh, head, &((add)->fieldname), keylen_in, hashval, add); \ [all …]
|
| /netbsd-src/external/zlib/pigz/dist/zopfli/ |
| H A D | hash.c | 35 h->hashval = (int*)malloc(sizeof(*h->hashval) * window_size); in ZopfliInitHash() 41 h->hashval[i] = -1; in ZopfliInitHash() 69 free(h->hashval); in ZopfliCleanHash() 100 h->hashval[hpos] = h->val; in ZopfliUpdateHash() 101 if (h->head[h->val] != -1 && h->hashval[h->head[h->val]] == h->val) { in ZopfliUpdateHash()
|
| /netbsd-src/sys/dev/raidframe/ |
| H A D | rf_stripelocks.c | 262 int hashval = HASH_STRIPEID(stripeID); in rf_AcquireStripeLock() local 275 Dprintf3("[%d] lock %ld hashval %d\n", tid, stripeID, hashval); in rf_AcquireStripeLock() 285 rf_lock_mutex2(lockTable[hashval].mutex); in rf_AcquireStripeLock() 286 for (lockDesc = lockTable[hashval].descList; lockDesc; in rf_AcquireStripeLock() 295 lockDesc->next = lockTable[hashval].descList; in rf_AcquireStripeLock() 296 lockTable[hashval].descList = lockDesc; in rf_AcquireStripeLock() 360 hashval); in rf_AcquireStripeLock() 371 rf_unlock_mutex2(lockTable[hashval].mutex); in rf_AcquireStripeLock() 384 int hashval = HASH_STRIPEID(stripeID); in rf_ReleaseStripeLock() local 404 rf_lock_mutex2(lockTable[hashval].mutex); in rf_ReleaseStripeLock() [all …]
|
| /netbsd-src/bin/csh/ |
| H A D | exec.c | 115 int i, hashval, hashval1; in doexec() local 119 hashval = 0; in doexec() 207 hashval = hashname(*av); in doexec() 218 hashval1 = hash(hashval, i); in doexec() 446 int hashval, i; in dohash() local 469 hashval = hash(hashname(str2short(dp->d_name)), i); in dohash() 470 bis(xhash, hashval); in dohash() 511 int hashval, hashval1, i; in iscommand() local 514 hashval = 0; in iscommand() 524 hashval = hashname(name); in iscommand() [all …]
|
| /netbsd-src/external/gpl2/xcvs/dist/src/ |
| H A D | hash.c | 282 int hashval; in insert_before() local 285 hashval = hashp (p->key); in insert_before() 286 if (list->hasharray[hashval] == NULL) /* make a header for list? */ in insert_before() 290 list->hasharray[hashval] = q->hashnext = q->hashprev = q; in insert_before() 294 for (q = list->hasharray[hashval]->hashnext; in insert_before() 295 q != list->hasharray[hashval]; q = q->hashnext) in insert_before() 300 q = list->hasharray[hashval]; in insert_before()
|
| /netbsd-src/bin/sh/ |
| H A D | alias.c | 310 unsigned int hashval; in hashalias() local 312 hashval = *(const unsigned char *)p << 4; in hashalias() 314 hashval += *p++; in hashalias() 315 return &atab[hashval % ATABSIZE]; in hashalias()
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | badcache.c | 152 bcentry_lookup(struct cds_lfht *ht, uint32_t hashval, dns__bckey_t *key) { in badcache_resize() 155 cds_lfht_lookup(ht, hashval, bcentry_match, key, &iter); in badcache_resize() 275 uint32_t hashval = bcentry_hash(&key); in dns_badcache_add() 281 ht_node = cds_lfht_add_unique(ht, hashval, bcentry_match, &key, in dns_badcache_add() 314 uint32_t hashval = bcentry_hash(&key); in dns_badcache_find() 316 dns_bcentry_t *found = bcentry_lookup(ht, hashval, &key); in dns_badcache_find() 63 unsigned int hashval; global() member 216 unsigned int hashval, hash; dns_badcache_add() local
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | badcache.c | 63 unsigned int hashval; member 194 bad->next = newtable[bad->hashval % newsize]; in badcache_resize() 195 newtable[bad->hashval % newsize] = bad; in badcache_resize() 216 unsigned int hashval, hash; in dns_badcache_add() local 232 hashval = dns_name_hash(name, false); in dns_badcache_add() 233 hash = hashval % bc->size; in dns_badcache_add() 263 bad->hashval = hashval; in dns_badcache_add()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/ |
| H A D | tls13_enc.c | 461 unsigned char hashval[EVP_MAX_MD_SIZE]; in tls13_change_cipher_state() local 462 unsigned char *hash = hashval; in tls13_change_cipher_state() 568 || !EVP_DigestFinal_ex(mdctx, hashval, &hashlenui)) { in tls13_change_cipher_state() 580 hashval, hashlen, in tls13_change_cipher_state() 644 || !ssl_handshake_hash(s, hashval, sizeof(hashval), &hashlen)) { in tls13_change_cipher_state() 655 memcpy(s->server_finished_hash, hashval, hashlen); in tls13_change_cipher_state() 658 memcpy(s->handshake_traffic_hash, hashval, hashlen); in tls13_change_cipher_state() 668 hashval, hashlen, s->resumption_master_secret, in tls13_change_cipher_state()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/ssl/ |
| H A D | tls13_enc.c | 427 unsigned char hashval[EVP_MAX_MD_SIZE]; in tls13_change_cipher_state() local 428 unsigned char *hash = hashval; in tls13_change_cipher_state() 541 || !EVP_DigestFinal_ex(mdctx, hashval, &hashlenui)) { in tls13_change_cipher_state() 552 hashval, hashlen, in tls13_change_cipher_state() 615 || !ssl_handshake_hash(s, hashval, sizeof(hashval), &hashlen)) { in tls13_change_cipher_state() 626 memcpy(s->server_finished_hash, hashval, hashlen); in tls13_change_cipher_state() 629 memcpy(s->handshake_traffic_hash, hashval, hashlen); in tls13_change_cipher_state() 639 hashval, hashlen, s->resumption_master_secret, in tls13_change_cipher_state()
|
| /netbsd-src/lib/libc/stdlib/ |
| H A D | hcreate.c | 203 uint32_t hashval; in hsearch_r() local 214 hashval = (*__default_hash)(item.key, len); in hsearch_r() 216 chain = &table[hashval & (head->size - 1)]; in hsearch_r()
|
| /netbsd-src/lib/libintl/ |
| H A D | gettext.c | 387 calc_collision_step(uint32_t hashval, uint32_t hashsize) in calc_collision_step() 390 return (hashval % (hashsize - 2)) + 1; 483 uint32_t hashval, idx, step; in insert_to_hash() 485 hashval = __intl_string_hash(str); in insert_to_hash() 486 step = calc_collision_step(hashval, hsize); in insert_to_hash() 487 idx = hashval % hsize; in insert_to_hash() 799 uint32_t idx, hashval, step, strno; in lookup_hash() 806 hashval = __intl_string_hash(msgid); in lookup_hash() 807 step = calc_collision_step(hashval, mohandle->mo.mo_hsize); in lookup_hash() 808 idx = hashval in lookup_hash() 385 calc_collision_step(uint32_t hashval,uint32_t hashsize) calc_collision_step() argument 481 uint32_t hashval, idx, step; insert_to_hash() local 797 uint32_t idx, hashval, step, strno; lookup_hash() local [all...] |
| /netbsd-src/sys/kern/ |
| H A D | subr_thmap.c | 212 uint32_t hashval; // current hash value member 364 const uint32_t hashval = hash(seed, key, len, 0); in hashval_init() local 367 query->rslot = ((hashval >> ROOT_MSBITS) ^ len) & ROOT_MASK; in hashval_init() 369 query->hashval = hashval; in hashval_init() 386 query->hashval = hash(query->seed, key, len, i); in hashval_getslot() 389 return (query->hashval >> shift) & LEVEL_MASK; in hashval_getslot() 409 return query->hashval & LEVEL_MASK; in hashval_getl0slot()
|
| /netbsd-src/libexec/ld.elf_so/ |
| H A D | symbol.c | 331 const Elf32_Word *hashval; in _rtld_symlook_obj_gnu() local 354 hashval = &obj->chains_gnu[bucket]; in _rtld_symlook_obj_gnu() 356 if (((*hashval ^ hash) >> 1) == 0) { in _rtld_symlook_obj_gnu() 357 symnum = hashval - obj->chains_gnu; in _rtld_symlook_obj_gnu() 364 } while ((*hashval++ & 1) == 0); in _rtld_symlook_obj_gnu()
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | gdb-index.h | 203 unsigned int hashval; member 209 { return this->hashval; } in hash()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | gdb-index.h | 203 unsigned int hashval; member 209 { return this->hashval; } in hash()
|