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