michael@0: //----------------------------------------------------------------------------- michael@0: // MurmurHash3 was written by Austin Appleby, and is placed in the public michael@0: // domain. The author hereby disclaims copyright to this source code. michael@0: michael@0: #ifndef _MURMURHASH3_H_ michael@0: #define _MURMURHASH3_H_ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: // Platform-specific functions and macros michael@0: michael@0: // Microsoft Visual Studio michael@0: michael@0: #if defined(_MSC_VER) michael@0: michael@0: typedef unsigned char uint8_t; michael@0: typedef unsigned long uint32_t; michael@0: typedef unsigned __int64 uint64_t; michael@0: michael@0: // Other compilers michael@0: michael@0: #else // defined(_MSC_VER) michael@0: michael@0: #include michael@0: michael@0: #endif // !defined(_MSC_VER) michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: michael@0: void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out ); michael@0: michael@0: void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out ); michael@0: michael@0: void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out ); michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: michael@0: #endif // _MURMURHASH3_H_