summaryrefslogtreecommitdiff
path: root/klm/util/murmur_hash.hh
blob: ae7e88dece2baa8629793d8fd24da55148005dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef UTIL_MURMUR_HASH__
#define UTIL_MURMUR_HASH__
#include <cstddef>
#include <stdint.h>

namespace util {

uint64_t MurmurHash64A(const void * key, std::size_t len, uint64_t seed = 0);
uint64_t MurmurHash64B(const void * key, std::size_t len, uint64_t seed = 0);
uint64_t MurmurHashNative(const void * key, std::size_t len, uint64_t seed = 0);

} // namespace util

#endif // UTIL_MURMUR_HASH__