ELF hash func
| 300 | |
| 301 | //ELF hash func |
| 302 | static uint32_t xh_elf_hash(const uint8_t *name) |
| 303 | { |
| 304 | uint32_t h = 0, g; |
| 305 | |
| 306 | while (*name) { |
| 307 | h = (h << 4) + *name++; |
| 308 | g = h & 0xf0000000; |
| 309 | h ^= g; |
| 310 | h ^= g >> 24; |
| 311 | } |
| 312 | |
| 313 | return h; |
| 314 | } |
| 315 | |
| 316 | //GNU hash func |
| 317 | static uint32_t xh_elf_gnu_hash(const uint8_t *name) |
no outgoing calls
no test coverage detected