f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi MurmurHash3 was written by Austin Appleby, and is placed in the public
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi domain. The author hereby disclaims copyright to this source code.
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi Adapted for dovecot by Aki Tuomi <aki.tuomi@dovecot.fi> 2017-11-27
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi#define MURMURHASH3_32_RESULTBYTES (sizeof(uint32_t))
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi#define MURMURHASH3_128_RESULTBYTES (sizeof(uint64_t)*2)
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi#define MURMURHASH3_128_RESULTBYTES (sizeof(uint32_t)*4)
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi/* You should use random seed */
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomivoid murmurhash3_32(const void * key, size_t len, uint32_t seed,
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomi unsigned char out[STATIC_ARRAY MURMURHASH3_32_RESULTBYTES]);
f6de86ea29e87fba001b6231d38a4c51e8a5c543Aki Tuomivoid murmurhash3_128(const void * key, size_t len, uint32_t seed,