diff options
| author | chenzizhan <[email protected]> | 2024-10-17 15:04:58 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2024-10-17 15:04:58 +0800 |
| commit | 06153e396729e3091db544ce1217b5f737d2cd0b (patch) | |
| tree | 8505a83ea6a7c060ad6927b6cfc996e78bfcd2f4 /vendors/murmurhash/murmurhash.h | |
| parent | 0505aba853c13e555306626a20ce0701cabb406d (diff) | |
use murmurhash as uthash functionv4.6.7
Diffstat (limited to 'vendors/murmurhash/murmurhash.h')
| -rw-r--r-- | vendors/murmurhash/murmurhash.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendors/murmurhash/murmurhash.h b/vendors/murmurhash/murmurhash.h new file mode 100644 index 0000000..b6b6e43 --- /dev/null +++ b/vendors/murmurhash/murmurhash.h @@ -0,0 +1,30 @@ +/** + * `murmurhash.h' - murmurhash + * + * copyright (c) 2014-2022 joseph werle <[email protected]> + */ + +#ifndef MURMURHASH_H +#define MURMURHASH_H + +#include <stdint.h> + +#define MURMURHASH_VERSION "0.1.0" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Returns a murmur hash of `key' based on `seed' + * using the MurmurHash3 algorithm + */ + +uint32_t +murmurhash (const char *, uint32_t, uint32_t); + +#ifdef __cplusplus +} +#endif + +#endif |
