Jon Ashburn | fc1031e | 2015-11-17 15:31:02 -0700 | [diff] [blame] | 1 | |
| 2 | /** |
| 3 | * `murmurhash.h' - murmurhash |
| 4 | * |
| 5 | * copyright (c) 2014 joseph werle <joseph.werle@gmail.com> |
| 6 | */ |
| 7 | |
| 8 | #ifndef MURMURHASH_H |
| 9 | #define MURMURHASH_H 1 |
| 10 | |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | #define MURMURHASH_VERSION "0.0.3" |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
| 19 | /** |
| 20 | * Returns a murmur hash of `key' based on `seed' |
| 21 | * using the MurmurHash3 algorithm |
| 22 | */ |
| 23 | |
| 24 | uint32_t |
Courtney Goeltzenleuchter | 0ef13a0 | 2015-12-16 16:19:46 -0700 | [diff] [blame] | 25 | murmurhash (const char *key, size_t len, uint32_t seed); |
Jon Ashburn | fc1031e | 2015-11-17 15:31:02 -0700 | [diff] [blame] | 26 | |
| 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #endif |