Home | History | Annotate | Download | only in libelf

Lines Matching refs:hash

1 /* Compute hash value for given string according to ELF standard.
31 unsigned long int hash = *name;
32 if (hash != 0 && name[1] != '\0')
34 hash = (hash << 4) + name[1];
37 hash = (hash << 4) + name[2];
40 hash = (hash << 4) + name[3];
43 hash = (hash << 4) + name[4];
48 hash = (hash << 4) + *name++;
49 hi = hash & 0xf0000000;
55 hash ^= hi >> 24;
57 hash &= ~hi;
62 hash ^= hi >> 24;
67 hash &= 0x0fffffff;
72 return hash;
75 #endif /* dl-hash.h */