faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering//-----------------------------------------------------------------------------
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering// MurmurHash2 was written by Austin Appleby, and is placed in the public
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering// domain. The author hereby disclaims copyright to this source code.
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering#ifndef _MURMURHASH2_H_
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering#define _MURMURHASH2_H_
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering//-----------------------------------------------------------------------------
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering// Platform-specific functions and macros
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering// Microsoft Visual Studio
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering#if defined(_MSC_VER)
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringtypedef unsigned char uint8_t;
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringtypedef unsigned long uint32_t;
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poetteringtypedef unsigned __int64 uint64_t;
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering// Other compilers
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ceLennart Poettering
4ad7f2761da661853dcc29d542efb4727abb1101Nick Owens#else // defined(_MSC_VER)
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poettering
72667f0890372a952a7c5b8cc498ec3cf9440973Lennart Poettering#include <stdint.h>
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering#endif // !defined(_MSC_VER)
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering//-----------------------------------------------------------------------------
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
78c6a153c47f8d597c827bdcaf8c4e42ac87f738Lennart Poetteringuint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering//-----------------------------------------------------------------------------
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering#endif // _MURMURHASH2_H_
faa133f3aa7a18f26563dc5d6b95898cb315c37aLennart Poettering