Home
last modified time | relevance | path

Searched refs:hashbits (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dht.c59 uint8_t hashbits[2];
127 uint32_t newbits = ht->hashbits[ht->hindex]; in memcasecmp()
142 uint32_t oldbits = ht->hashbits[oldindex]; in isc__ht_node_match()
145 REQUIRE(ht->hashbits[oldindex] >= HT_MIN_BITS); in isc__ht_node_match()
146 REQUIRE(ht->hashbits[oldindex] <= HT_MAX_BITS); in isc__ht_node_match()
150 REQUIRE(ht->hashbits[newindex] == HT_NO_BITS); in hash_32()
185 ht->hashbits[ht->hindex]); in hashtable_rehash()
200 if (ht->hashbits[ht->hindex] < newbits && newbits <= HT_MAX_BITS) { in hashtable_rehash()
207 REQUIRE(ht->hashbits[idx] == HT_NO_BITS); in hashtable_rehash_one()
212 ht->hashbits[id in hashtable_rehash_one()
58 uint8_t hashbits[2]; global() member
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dht.c58 uint8_t hashbits[2]; member
167 uint32_t newbits = ht->hashbits[ht->hindex]; in rehash_bits()
182 uint32_t oldbits = ht->hashbits[oldindex]; in hashtable_rehash()
185 REQUIRE(ht->hashbits[oldindex] >= HT_MIN_BITS); in hashtable_rehash()
186 REQUIRE(ht->hashbits[oldindex] <= HT_MAX_BITS); in hashtable_rehash()
190 REQUIRE(ht->hashbits[newindex] == HT_NO_BITS); in hashtable_rehash()
225 ht->hashbits[ht->hindex]); in hashtable_rehash_one()
240 if (ht->hashbits[ht->hindex] < newbits && newbits <= HT_MAX_BITS) { in maybe_rehash()
248 REQUIRE(ht->hashbits[idx] == HT_NO_BITS); in hashtable_new()
253 ht->hashbits[idx] = bits; in hashtable_new()
[all …]
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Drbt.c73 uint8_t hashbits[2];
337 uint8_t hashbits = (rbt->hashbits[0] > rbt->hashbits[1]) in dns_rbt_create()
338 ? rbt->hashbits[0] in dns_rbt_create()
339 : rbt->hashbits[1]; in dns_rbt_create()
341 return 1 << hashbits; in dns_rbt_create()
846 hash = isc_hash_bits32(hashval, rbt->hashbits[hindex]); in dns_rbt_findnode()
1452 hash = isc_hash_bits32(node->hashval, rbt->hashbits[rbt->hindex]); in dns_rbt_deletenode()
1463 REQUIRE(rbt->hashbits[inde in dns_rbt_deletenode()
90 uint8_t hashbits[2]; global() member
392 uint8_t hashbits = (rbt->hashbits[0] > rbt->hashbits[1]) dns_rbt_hashsize() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Drbt.c96 uint16_t hashbits; member
1036 rbt->hashbits = 0; in dns_rbt_create()
1081 size_t size = HASHSIZE(rbt->hashbits) * sizeof(dns_rbtnode_t *); in dns_rbt_destroy2()
1102 return (1 << rbt->hashbits); in dns_rbt_hashsize()
1677 rbt->hashbits)]; in dns_rbt_findnode()
2364 hash = hash_32(HASHVAL(node), rbt->hashbits); in hash_add_node()
2377 rbt->hashbits = RBT_HASH_MIN_BITS; in inithash()
2378 size = HASHSIZE(rbt->hashbits) * sizeof(dns_rbtnode_t *); in inithash()
2387 uint32_t newbits = rbt->hashbits; in rehash_bits()
2406 REQUIRE(rbt->hashbits <= rbt->maxhashbits); in rehash()
[all …]