[geodb] Adding sparkey dependency

This commit is contained in:
Al
2015-07-09 15:26:11 -04:00
parent 4f1b4756d0
commit fbef0a15fe
24 changed files with 4134 additions and 0 deletions

35
src/sparkey/MurmurHash3.h Normal file
View File

@@ -0,0 +1,35 @@
//-----------------------------------------------------------------------------
// 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_
//-----------------------------------------------------------------------------
// Platform-specific functions and macros
// Microsoft Visual Studio
#if defined(_MSC_VER)
typedef unsigned char uint8_t;
typedef unsigned long uint32_t;
typedef unsigned __int64 uint64_t;
// Other compilers
#else // defined(_MSC_VER)
#include <stdint.h>
#endif // !defined(_MSC_VER)
//-----------------------------------------------------------------------------
uint64_t murmurhash32_hash(const uint8_t *buf, uint64_t len, uint32_t seed);
uint64_t murmurhash64_hash(const uint8_t *buf, uint64_t len, uint32_t seed);
//-----------------------------------------------------------------------------
#endif // _MURMURHASH3_H_