bdf61960d9cfe0c12f75da6de269ebb99b98ac79
[ghc-hetmet.git] / ghc / rts / StrHash.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team, 1994-2000
4  *
5  * Hashing functions based on:
6  *
7  *   "Fast Hashing of Variable Length Text Strings"
8  *    Peter K. Pearson, CACM June 1990
9  *
10  * They return a 32 bit value containing 16 bits of hash value.
11  *
12  * ---------------------------------------------------------------------------*/
13
14 typedef unsigned long hash_t;
15
16 hash_t hash_str(char *str);
17 hash_t hash_fixed(char *data, nat len);