Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/mash/MurmurHash3.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 //----------------------------------------------------------------------------- |
jpayne@69 | 2 // MurmurHash3 was written by Austin Appleby, and is placed in the public |
jpayne@69 | 3 // domain. The author hereby disclaims copyright to this source code. |
jpayne@69 | 4 |
jpayne@69 | 5 #ifndef _MURMURHASH3_H_ |
jpayne@69 | 6 #define _MURMURHASH3_H_ |
jpayne@69 | 7 |
jpayne@69 | 8 //----------------------------------------------------------------------------- |
jpayne@69 | 9 // Platform-specific functions and macros |
jpayne@69 | 10 |
jpayne@69 | 11 // Microsoft Visual Studio |
jpayne@69 | 12 |
jpayne@69 | 13 #if defined(_MSC_VER) && (_MSC_VER < 1600) |
jpayne@69 | 14 |
jpayne@69 | 15 typedef unsigned char uint8_t; |
jpayne@69 | 16 typedef unsigned int uint32_t; |
jpayne@69 | 17 typedef unsigned __int64 uint64_t; |
jpayne@69 | 18 |
jpayne@69 | 19 // Other compilers |
jpayne@69 | 20 |
jpayne@69 | 21 #else // defined(_MSC_VER) |
jpayne@69 | 22 |
jpayne@69 | 23 #include <stdint.h> |
jpayne@69 | 24 |
jpayne@69 | 25 #endif // !defined(_MSC_VER) |
jpayne@69 | 26 |
jpayne@69 | 27 //----------------------------------------------------------------------------- |
jpayne@69 | 28 |
jpayne@69 | 29 void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out ); |
jpayne@69 | 30 |
jpayne@69 | 31 void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out ); |
jpayne@69 | 32 |
jpayne@69 | 33 void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out ); |
jpayne@69 | 34 |
jpayne@69 | 35 //----------------------------------------------------------------------------- |
jpayne@69 | 36 |
jpayne@69 | 37 #endif // _MURMURHASH3_H_ |