MurmurHash3.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.
  4. #ifndef _MURMURHASH3_H_
  5. #define _MURMURHASH3_H_
  6. //-----------------------------------------------------------------------------
  7. // Platform-specific functions and macros
  8. // Microsoft Visual Studio
  9. #if defined(_MSC_VER) && (_MSC_VER < 1600)
  10. typedef unsigned char uint8_t;
  11. typedef unsigned int uint32_t;
  12. typedef unsigned __int64 uint64_t;
  13. // Other compilers
  14. #else // defined(_MSC_VER)
  15. #include <stdint.h>
  16. #endif // !defined(_MSC_VER)
  17. //-----------------------------------------------------------------------------
  18. void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out );
  19. void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
  20. void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
  21. //-----------------------------------------------------------------------------
  22. #endif // _MURMURHASH3_H_