summaryrefslogtreecommitdiff
path: root/klm/util/murmur_hash.hh
blob: 78fe583fc59c989d3597657ba405d0277a29f03f (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 <inttypes.h>

namespace util {

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

} // namespace util

#endif // UTIL_MURMUR_HASH__