Home
last modified time | relevance | path

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

/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dhsearch_r.c44 hsearch_lookup_free(struct __hsearch *hsearch, size_t hash) in hsearch_lookup_free() argument
48 for (index = hash, i = 0;; index += ++i) { in hsearch_lookup_free()
62 size_t hash; in hsearch_hash() local
64 hash = offset_basis; in hsearch_hash()
66 hash ^= (uint8_t)*str++; in hsearch_hash()
68 hash *= UINT32_C(16777619); in hsearch_hash()
70 hash *= UINT64_C(1099511628211); in hsearch_hash()
72 return (hash); in hsearch_hash()
80 size_t hash, index, i, old_hash, old_count, new_count; in hsearch_r() local
83 hash = hsearch_hash(hsearch->offset_basis, item.key); in hsearch_r()
[all …]
/bionic/libfdtrack/
Dfdtrack.cpp188 size_t hash = 0; in hash_stack() local
191 hash = std::__hash_combine(hash, std::hash<std::string_view>()(function_names[i])); in hash_stack()
192 hash = std::__hash_combine(hash, std::hash<uint64_t>()(function_offsets[i])); in hash_stack()
194 return hash; in hash_stack()
210 size_t hash = 0; in fdtrack_dump_impl() member
241 size_t hash = hash_stack(function_names, function_offsets, stack_depth); in fdtrack_dump_impl() local
244 if (stacks->data[i].hash == hash) { in fdtrack_dump_impl()
254 stack.hash = hash; in fdtrack_dump_impl()
/bionic/libc/dns/resolv/
Dres_cache.c761 _dnsPacket_hashBytes( DnsPacket* packet, int numBytes, unsigned hash ) in _dnsPacket_hashBytes() argument
767 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
770 return hash; in _dnsPacket_hashBytes()
775 _dnsPacket_hashQName( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQName() argument
803 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashQName()
808 return hash; in _dnsPacket_hashQName()
812 _dnsPacket_hashQR( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQR() argument
814 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
815 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
816 return hash; in _dnsPacket_hashQR()
[all …]
/bionic/linker/
Dlinker_soinfo.cpp121 const auto [ hash, name_len ] = calculate_gnu_hash(name); in ElfW()
151 const uint32_t word_num = (hash / kBloomMaskBits) & lib->gnu_maskwords_; in ElfW()
153 const uint32_t h1 = hash % kBloomMaskBits; in ElfW()
154 const uint32_t h2 = (hash >> lib->gnu_shift2_) % kBloomMaskBits; in ElfW()
157 sym_idx = lib->gnu_bucket_[hash % lib->gnu_nbucket_]; in ElfW()
179 if ((chain_value >> 1) == (hash >> 1)) { in ElfW()
328 const uint32_t hash = symbol_name.gnu_hash(); in ElfW() local
331 const uint32_t word_num = (hash / kBloomMaskBits) & gnu_maskwords_; in ElfW()
333 const uint32_t h1 = hash % kBloomMaskBits; in ElfW()
334 const uint32_t h2 = (hash >> gnu_shift2_) % kBloomMaskBits; in ElfW()
[all …]
/bionic/tools/versioner/src/
DCompilationType.h49 struct hash<CompilationType> {
65 return std::hash<int32_t>()(value);
/bionic/linker/arch/arm_neon/
Dlinker_gnu_hash_neon.cpp198 const uint32_t hash = sum[0] + sum[1]; in calculate_gnu_hash_neon() local
200 return { hash, name_len }; in calculate_gnu_hash_neon()
/bionic/libdl/
DAndroid.bp89 ldflags: ["-Wl,--hash-style=both"],
101 "-Wl,--hash-style=both",
/bionic/libc/malloc_debug/
DPointerData.h70 struct hash<FrameKeyType> {
/bionic/libc/kernel/uapi/linux/
Dvirtio_crypto.h252 struct virtio_crypto_hash_para hash; member
Dbpf.h789 __u32 hash; member
971 __u32 hash; member
/bionic/tests/libs/
DAndroid.bp174 // Library to test gnu-styled hash
177 name: "libgnu-hash-table-library",
180 ldflags: ["-Wl,--hash-style=gnu"],
184 // Library to test sysv-styled hash
187 name: "libsysv-hash-table-library",
190 ldflags: ["-Wl,--hash-style=sysv"],
/bionic/
Dandroid-changes-for-ndk-developers.md100 The GNU hash style available with `--hash-style=gnu` allows faster
102 above. Use `--hash-style=both` if you want to build code that uses this
/bionic/tests/
DAndroid.bp883 "libgnu-hash-table-library",
905 "libsysv-hash-table-library",
/bionic/libm/
DAndroid.bp286 ldflags: ["-Wl,--hash-style=both"],
375 ldflags: ["-Wl,--hash-style=both"],
/bionic/libc/
DAndroid.bp451 srcs: ["upstream-netbsd/common/lib/libc/hash/sha1/sha1.c"],
1592 "-Wl,--hash-style=both",
1638 ldflags: ["-Wl,--hash-style=both"],
1949 ldflags: ["-Wl,--hash-style=both"],
1960 ldflags: ["-Wl,--hash-style=both"],