mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-25 22:14:28 +00:00
15 lines
204 B
C
15 lines
204 B
C
#include "ld.h"
|
|
|
|
uint32_t ElfHash(const unsigned char *Name)
|
|
{
|
|
uint32_t i = 0, j;
|
|
while (*Name)
|
|
{
|
|
i = (i << 4) + *Name++;
|
|
if ((j = i & 0xF0000000) != 0)
|
|
i ^= j >> 24;
|
|
i &= ~j;
|
|
}
|
|
return i;
|
|
}
|