Open SCAP Library
/home/pvrabec/project/openscap/openscap-0.8.0/src/OVAL/probes/SEAP/MurmurHash3.h
00001 //-----------------------------------------------------------------------------
00002 // MurmurHash3 was written by Austin Appleby, and is placed in the public
00003 // domain. The author hereby disclaims copyright to this source code.
00004 
00005 #ifndef _MURMURHASH3_H_
00006 #define _MURMURHASH3_H_
00007 
00008 //-----------------------------------------------------------------------------
00009 // Platform-specific functions and macros
00010 
00011 // Microsoft Visual Studio
00012 
00013 #if defined(_MSC_VER)
00014 
00015 typedef unsigned char uint8_t;
00016 typedef unsigned long uint32_t;
00017 typedef unsigned __int64 uint64_t;
00018 
00019 // Other compilers
00020 
00021 #else   // defined(_MSC_VER)
00022 
00023 #include <stdint.h>
00024 
00025 #endif // !defined(_MSC_VER)
00026 
00027 //-----------------------------------------------------------------------------
00028 
00029 void MurmurHash3_x86_32  ( const void * key, int len, uint32_t seed, void * out );
00030 
00031 void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
00032 
00033 void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
00034 
00035 //-----------------------------------------------------------------------------
00036 
00037 #endif // _MURMURHASH3_H_