summaryrefslogtreecommitdiff
path: root/murmurhash.h
blob: 598085ac634215c42403a3e62c168900a312b9db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * `murmurhash.h' - murmurhash
 *
 * copyright (c) 2014-2025 joseph werle <joseph.werle@gmail.com>
 */
#ifndef MURMURHASH_H
#define MURMURHASH_H

#include <stdint.h>

#define MURMURHASH_VERSION "0.2.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