blob: 3fa072c1133ed33e85d120bdc77be3814e3b41f7 [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
25murmurhash (const char *key, uint32_t len, uint32_t seed);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif