Turnstone Operating System
Loading...
Searching...
No Matches
murmurhash.64.c File Reference

murmur hash interface implementation More...

#include <murmurhash.h>
#include <utils.h>

Macros

#define MURMURHASH_64A_CONST   0xc6a4a7935bd1e995ULL
 
#define MURMURHASH_64A_R   47
 
#define MURMURHASH3_128_1   0x87c37b91114253d5ULL
 
#define MURMURHASH3_128_2   0x4cf5ad432745937fULL
 
#define MURMURHASH3_128_3   0x52dce729
 
#define MURMURHASH3_128_4   0x38495ab5
 
#define MURMURHASH3_128_5   0xff51afd7ed558ccdULL
 
#define MURMURHASH3_128_6   0xc4ceb9fe1a85ec53ULL
 

Functions

 MODULE ("turnstone.lib")
 
uint64_t murmurhash64a (const void *data, uint64_t len, uint64_t seed)
 computes murmur hash 64 bit a version More...
 
static uint64_t murmurhash3_fmix64 (uint64_t k)
 
uint128_t murmurhash3_128 (const void *data, uint64_t len, uint64_t seed)
 computes murmur hash v3 128 bit More...
 

Detailed Description

murmur hash interface implementation

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ murmurhash3_128()

uint128_t murmurhash3_128 ( const void *  data,
uint64_t  len,
uint64_t  seed 
)

computes murmur hash v3 128 bit

Parameters
[in]datadata for hashing
[in]lendata length
[in]seedseed
Returns
hash value

◆ murmurhash64a()

uint64_t murmurhash64a ( const void *  data,
uint64_t  len,
uint64_t  seed 
)

computes murmur hash 64 bit a version

Parameters
[in]datadata for hashing
[in]lendata length
[in]seedseed
Returns
hash value