1
// Source: http://code.google.com/p/smhasher/wiki/MurmurHash3
3
//-----------------------------------------------------------------------------
4
// MurmurHash3 was written by Austin Appleby, and is placed in the public
5
// domain. The author hereby disclaims copyright to this source code.
7
#ifndef _MURMURHASH3_H_
8
#define _MURMURHASH3_H_
10
//-----------------------------------------------------------------------------
11
// Platform-specific functions and macros
13
// Microsoft Visual Studio
17
typedef unsigned char uint8_t;
18
typedef unsigned long uint32_t;
19
typedef unsigned __int64 uint64_t;
23
#else // defined(_MSC_VER)
27
#endif // !defined(_MSC_VER)
29
//-----------------------------------------------------------------------------
31
void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out );
33
void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
35
void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
37
//-----------------------------------------------------------------------------
39
#endif // _MURMURHASH3_H_