OLD | NEW |
1 /* Modified for use with yasm by Peter Johnson. | 1 /* Modified for use with yasm by Peter Johnson. */ |
2 * $Id: phash.h 2101 2008-05-23 06:46:51Z peter $ | |
3 */ | |
4 /* | 2 /* |
5 ------------------------------------------------------------------------------ | 3 ------------------------------------------------------------------------------ |
6 By Bob Jenkins, September 1996. | 4 By Bob Jenkins, September 1996. |
7 lookupa.h, a hash function for table lookup, same function as lookup.c. | 5 lookupa.h, a hash function for table lookup, same function as lookup.c. |
8 Use this code in any way you wish. Public Domain. It has no warranty. | 6 Use this code in any way you wish. Public Domain. It has no warranty. |
9 Source is http://burtleburtle.net/bob/c/lookupa.h | 7 Source is http://burtleburtle.net/bob/c/lookupa.h |
10 ------------------------------------------------------------------------------ | 8 ------------------------------------------------------------------------------ |
11 */ | 9 */ |
12 | 10 |
13 #ifndef YASM_LIB_DECL | 11 #ifndef YASM_LIB_DECL |
14 #define YASM_LIB_DECL | 12 #define YASM_LIB_DECL |
15 #endif | 13 #endif |
16 | 14 |
17 YASM_LIB_DECL | 15 YASM_LIB_DECL |
18 unsigned long phash_lookup(const char *k, size_t length, | 16 unsigned long phash_lookup(const char *k, size_t length, |
19 unsigned long level); | 17 unsigned long level); |
20 YASM_LIB_DECL | 18 YASM_LIB_DECL |
21 void phash_checksum(const char *k, size_t length, unsigned long *state); | 19 void phash_checksum(const char *k, size_t length, unsigned long *state); |
OLD | NEW |