1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1994-2000
5 * Hashing functions based on:
7 * "Fast Hashing of Variable Length Text Strings"
8 * Peter K. Pearson, CACM June 1990
10 * They return a 32 bit value containing 16 bits of hash value.
12 * ---------------------------------------------------------------------------*/
14 typedef unsigned long hash_t;
16 hash_t hash_str(char *str);
17 hash_t hash_fixed(char *data, nat len);