Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/dns/resolv/
Dres_cache.c768 _dnsPacket_hashBytes( DnsPacket* packet, int numBytes, unsigned hash ) in _dnsPacket_hashBytes() argument
774 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
777 return hash; in _dnsPacket_hashBytes()
782 _dnsPacket_hashQName( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQName() argument
810 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashQName()
815 return hash; in _dnsPacket_hashQName()
819 _dnsPacket_hashQR( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQR() argument
821 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
822 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
823 return hash; in _dnsPacket_hashQR()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregex2.h160 uch hash; /* hash code */ member
165 #define CHadd(cs, c) ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))
166 #define CHsub(cs, c) ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))
Dregcomp.c1268 cs->hash = 0; in allocset()
1329 h = cs->hash; in freezeset()
1335 if (cs2->hash == h && cs2 != cs) { in freezeset()
/bionic/libc/tools/
Dgenerate-NOTICE.py37 hash = lines[i].startswith("#")
41 if not hash:
52 if hash and len(lines[i]) == 0:
/bionic/libc/bionic/
Dmalloc_debug_leak.cpp93 int hash = 0; in get_hash() local
96 hash = (hash * 33) + (backtrace[i] >> 2); in get_hash()
99 return hash; in get_hash()
124 size_t hash = get_hash(backtrace, numEntries); in record_backtrace() local
125 size_t slot = hash % HASHTABLE_SIZE; in record_backtrace()
/bionic/linker/
Dlinker.cpp534 uint32_t hash = symbol_name.gnu_hash(); in gnu_lookup() local
535 uint32_t h2 = hash >> gnu_shift2_; in gnu_lookup()
538 uint32_t word_num = (hash / bloom_mask_bits) & gnu_maskwords_; in gnu_lookup()
547 …if ((1 & (bloom_word >> (hash % bloom_mask_bits)) & (bloom_word >> (h2 % bloom_mask_bits))) == 0) { in gnu_lookup()
555 uint32_t n = gnu_bucket_[hash % gnu_nbucket_]; in gnu_lookup()
582 if (((gnu_chain_[n] ^ hash) >> 1) == 0 && in gnu_lookup()
603 uint32_t hash = symbol_name.elf_hash(); in elf_lookup() local
607 reinterpret_cast<void*>(base), hash, hash % nbucket_); in elf_lookup()
614 for (uint32_t n = bucket_[hash % nbucket_]; n != 0; n = chain_[n]) { in elf_lookup()
637 reinterpret_cast<void*>(base), hash, hash % nbucket_); in elf_lookup()