| 1 | /** |
| 2 | * The "lookup3.c" Hash Implementation from Bob Jenkins |
| 3 | * |
| 4 | * Original Author: Bob Jenkins <bob_jenkins@burtleburtle.net> |
| 5 | * Source: http://burtleburtle.net/bob/c/lookup3.c |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * Original License: |
| 10 | * |
| 11 | * These are functions for producing 32-bit hashes for hash table lookup. |
| 12 | * hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final() |
| 13 | * are externally useful functions. Routines to test the hash are included |
| 14 | * if SELF_TEST is defined. You can use this free for any purpose. It's in |
| 15 | * the public domain. It has no warranty. |
| 16 | */ |
| 17 | |
| 18 | #ifndef _HASH_H |
| 19 | #define _HASH_H |
| 20 | |
| 21 | #include <inttypes.h> |
| 22 | |
| 23 | uint32_t jhash(const void *key, size_t length, uint32_t initval); |
| 24 | |
| 25 | #endif |
| 26 | |