Support 128bit seed for MurmurHash3_x64_128

switch-to-ppa
elsid 3 years ago
parent d04d4ab499
commit 86bf9d5b8d
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -66,13 +66,13 @@ FORCE_INLINE uint64_t fmix64 ( uint64_t k )
//-----------------------------------------------------------------------------
void MurmurHash3_x64_128 ( const void * key, const int len,
const uint32_t seed, void * out )
const uint64_t * seed, void * out )
{
const uint8_t * data = (const uint8_t*)key;
const int nblocks = len / 16;
uint64_t h1 = seed;
uint64_t h2 = seed;
uint64_t h1 = seed[0];
uint64_t h2 = seed[1];
const uint64_t c1 = BIG_CONSTANT(0x87c37b91114253d5);
const uint64_t c2 = BIG_CONSTANT(0x4cf5ad432745937f);

@ -26,7 +26,7 @@ typedef unsigned __int64 uint64_t;
//-----------------------------------------------------------------------------
void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
void MurmurHash3_x64_128 ( const void * key, int len, const uint64_t * seed, void * out );
//-----------------------------------------------------------------------------

Loading…
Cancel
Save