Nilorea Library

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros
murmur3.h
Go to the documentation of this file.
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
5 #ifndef _MURMURHASH3_H_
6 #define _MURMURHASH3_H_
7
8
9 #include <string.h>
10
11 //-----------------------------------------------------------------------------
12 // Platform-specific functions and macros
13
14 // Microsoft Visual Studio
15
16 #if defined(_MSC_VER)
17
18 typedef unsigned char uint8_t;
19 typedef unsigned long uint32_t;
20 typedef unsigned __int64 uint64_t;
21
22 // Other compilers
23
24 #else // defined(_MSC_VER)
25
26 #include <stdint.h>
27
28 #endif // !defined(_MSC_VER)
29
30 //-----------------------------------------------------------------------------
31
32 void MurmurHash3_x86_32 ( const void * key, int len, uint32_t seed, void * out );
33
34 void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
35
36 //-----------------------------------------------------------------------------
37
38 #endif // _MURMURHASH3_H_