1 #ifndef HASH_H
2 #define HASH_H
3 
4 #include <stdint.h> /* Replace with <stdint.h> if appropriate */
5 #undef get16bits
6 #if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \
7   || defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__)
8 #define get16bits(d) (*((const uint16_t *) (d)))
9 #endif
10 
11 #if !defined (get16bits)
12 #define get16bits(d) ((((uint32_t)(((const uint8_t *)(d))[1])) << 8)\
13                        +(uint32_t)(((const uint8_t *)(d))[0]) )
14 #endif
15 
16 namespace combblas {
17 
18 uint32_t SuperFastHash (const char * data, int len);
19 
20 //void MurmurHash3_x64_32 ( const void * key, int len, uint32_t seed, void * out );
21 void MurmurHash3_x64_64 ( const void * key, int len, uint32_t seed, void * out );
22 
23 }
24 
25 #endif
26