hashfunctions

generic hash functions and PRFs: Jenkins, FNV, siphash
git clone https://noulin.net/git/hashfunctions.git
Log | Files | Refs | LICENSE

murmur3.h (792B)


      1 //-----------------------------------------------------------------------------
      2 // MurmurHash3 was written by Austin Appleby, and is placed in the
      3 // public domain. The author hereby disclaims copyright to this source
      4 // code.
      5 
      6 #ifndef _MURMURHASH3_H_
      7 #define _MURMURHASH3_H_
      8 
      9 #include <stdint.h>
     10 
     11 #ifdef __cplusplus
     12 extern "C" {
     13 #endif
     14 
     15 //-----------------------------------------------------------------------------
     16 
     17 void murmurHash3_x86_32 (const void *key, int len, uint32_t seed, void *out);
     18 
     19 void murmurHash3_x86_128(const void *key, int len, uint32_t seed, void *out);
     20 
     21 void murmurHash3_x64_128(const void *key, int len, uint32_t seed, void *out);
     22 
     23 //-----------------------------------------------------------------------------
     24 
     25 #ifdef __cplusplus
     26 }
     27 #endif
     28 
     29 #endif // _MURMURHASH3_H_