blob: be55982ead1bdb17bc50fd3deb66f8a25b2cdcb3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
static unsigned long elf_hash(const unsigned char *name) {
unsigned long h=0, g;
while (*name) {
h = (h<<4) + *(name++);
if ((g = h&0xf0000000)) h ^= g>>24;
h &= ~g;
}
return h;
}
|