Tpetra Matrix/Vector Services Version of the Day
MurmurHash3.hpp
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> // C99 assumption ?
00024 
00025 #endif // !defined(_MSC_VER)
00026 
00027 namespace Tpetra
00028 {
00029 
00030 namespace Details
00031 {
00032 //-----------------------------------------------------------------------------
00033 
00034 void MurmurHash3_x86_32  ( const void * key, int len, uint32_t seed, void * out );
00035 
00036 void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
00037 
00038 void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
00039 
00040 }
00041 
00042 }
00043 
00044 //-----------------------------------------------------------------------------
00045 
00046 
00047 #endif // _MURMURHASH3_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines