iceberg-cpp
Loading...
Searching...
No Matches
murmurhash3_internal.h
1//-----------------------------------------------------------------------------
2// MurmurHash3 was written by Austin Appleby, and is placed in the public
3// domain. The author hereby disclaims copyright to this source code.
4
5#pragma once
6
7//-----------------------------------------------------------------------------
8// Platform-specific functions and macros
9
10// Microsoft Visual Studio
11
12#if defined(_MSC_VER) && (_MSC_VER < 1600)
13
14typedef unsigned char uint8_t;
15typedef unsigned int uint32_t;
16typedef unsigned __int64 uint64_t;
17
18// Other compilers
19
20#else // defined(_MSC_VER)
21
22# include <cstdint>
23
24#endif // !defined(_MSC_VER)
25
26namespace iceberg {
27
28//-----------------------------------------------------------------------------
29
30void MurmurHash3_x86_32(const void* key, int len, uint32_t seed, void* out);
31
32void MurmurHash3_x86_128(const void* key, int len, uint32_t seed, void* out);
33
34void MurmurHash3_x64_128(const void* key, int len, uint32_t seed, void* out);
35
36//-----------------------------------------------------------------------------
37
38} // namespace iceberg