blob: 62e4d0970400932f995e16aacbd14b40cc991c8c [file] [log] [blame]
Jon Ashburnfc1031e2015-11-17 15:31:02 -07001
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
16extern "C" {
17#endif
18
19/**
20 * Returns a murmur hash of `key' based on `seed'
21 * using the MurmurHash3 algorithm
22 */
23
24uint32_t
Courtney Goeltzenleuchter0ef13a02015-12-16 16:19:46 -070025murmurhash (const char *key, size_t len, uint32_t seed);
Jon Ashburnfc1031e2015-11-17 15:31:02 -070026
27#ifdef __cplusplus
28}
29#endif
30
31#endif