urbit/outside/murmur3/MurmurHash3.h

38 lines
970 B
C
Raw Normal View History

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