File:  [DVB] / dietlibc / libdl / elf_hash.h
Revision 1.3: download - view: text, annotated - select for diffs
Sat Jan 29 02:29:16 2005 UTC (19 years, 4 months ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
now at least diet-dyn works ;)

static unsigned int elf_hash(const unsigned char *name) {
  unsigned int h=0, g;

  while (*name) {
    h = (h<<4) + *(name++);
    if ((g = h&0xf0000000)) h ^= g>>24;
    h ^= g;
  }
  return h;
}

LinuxTV legacy CVS <linuxtv.org/cvs>