MCPcopy Create free account
hub / github.com/cinit/TMoe / elf_gnu_hash

Function elf_gnu_hash

app/src/main/cpp/utils/elfsym/ElfView.cpp:48–54  ·  view source on GitHub ↗

GNU hash

Source from the content-addressed store, hash-verified

46
47// GNU hash
48static inline uint32_t elf_gnu_hash(const char *name) {
49 uint32_t h = 5381;
50 while (*name != 0) {
51 h += (h << 5) + *name++;
52 }
53 return h;
54}
55
56
57[[nodiscard]]

Callers 2

findLocalSymByGnuHash64Function · 0.85
findLocalSymByGnuHash32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected