Back to index

glibc  2.9
elem-hash.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


static int32_t elem_hash (const char *str, int_fast32_t n)

Function Documentation

static int32_t elem_hash ( const char *  str,
int_fast32_t  n 
) [inline, static]

Definition at line 23 of file elem-hash.h.

  int32_t result = n;

  while (n-- > 0)
      result <<= 3;
      result += *str++;

  return result;

Here is the caller graph for this function: