1// Source: http://code.google.com/p/smhasher/wiki/MurmurHash3 2 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. 6 7#ifndef _MURMURHASH3_H_ 8#define _MURMURHASH3_H_ 9 10//----------------------------------------------------------------------------- 11// Platform-specific functions and macros 12 13// Microsoft Visual Studio 14 15#if defined(_MSC_VER) 16 17typedef unsigned char uint8_t; 18typedef unsigned long uint32_t; 19typedef unsigned __int64 uint64_t; 20 21// Other compilers 22 23#else // defined(_MSC_VER) 24 25#include <stdint.h> 26 27#endif // !defined(_MSC_VER) 28 29//----------------------------------------------------------------------------- 30 31void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out ); 32 33void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out ); 34 35void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out ); 36 37//----------------------------------------------------------------------------- 38 39#endif // _MURMURHASH3_H_ 40