Blame uds/murmur/MurmurHash3.h
|
Packit Service |
310c69 |
//-----------------------------------------------------------------------------
|
|
Packit Service |
310c69 |
// MurmurHash3 was written by Austin Appleby, and is placed in the public
|
|
Packit Service |
310c69 |
// domain. The author hereby disclaims copyright to this source code.
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#ifndef _MURMURHASH3_H_
|
|
Packit Service |
310c69 |
#define _MURMURHASH3_H_
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
//-----------------------------------------------------------------------------
|
|
Packit Service |
310c69 |
// Platform-specific functions and macros
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
// Linux kernel
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#ifdef __KERNEL__
|
|
Packit Service |
310c69 |
# include <linux/types.h>
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
// Microsoft Visual Studio
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#else // defined(__KERNEL__)
|
|
Packit Service |
310c69 |
# if defined(_MSC_VER)
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
typedef unsigned char uint8_t;
|
|
Packit Service |
310c69 |
typedef unsigned long uint32_t;
|
|
Packit Service |
310c69 |
typedef unsigned __int64 uint64_t;
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
// Other compilers
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
# else // defined(_MSC_VER)
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
# include <stdint.h>
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
# endif // !defined(_MSC_VER)
|
|
Packit Service |
310c69 |
#endif // !defined(__KERNEL__)
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
//-----------------------------------------------------------------------------
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out );
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
//-----------------------------------------------------------------------------
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#endif // _MURMURHASH3_H_
|