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.
5 #ifndef _MURMURHASH3_H_
6 #define _MURMURHASH3_H_
8 //-----------------------------------------------------------------------------
9 // Platform-specific functions and macros
11 // Microsoft Visual Studio
15 typedef unsigned char uint8_t;
16 typedef unsigned long uint32_t;
17 typedef unsigned __int64 uint64_t;
21 #else // defined(_MSC_VER)
24 #include <sys/types.h>
26 #endif // !defined(_MSC_VER)
28 //-----------------------------------------------------------------------------
30 void MurmurHash3_x86_32 ( const void * key, size_t len, uint32_t seed, void * out );
32 void MurmurHash3_x86_128 ( const void * key, size_t len, uint32_t seed, void * out );
34 void MurmurHash3_x64_128 ( const void * key, size_t len, uint32_t seed, void * out );
36 //-----------------------------------------------------------------------------
38 #endif // _MURMURHASH3_H_