Turnstone Operating System
Loading...
Searching...
No Matches
murmurhash.h File Reference

murmur hash interface More...

#include <types.h>

Macros

#define ___MURMURHASH_H   0
 

Functions

uint64_t murmurhash64a (const void *data, uint64_t len, uint64_t seed)
 computes murmur hash 64 bit a version More...
 
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

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

Macro Definition Documentation

◆ ___MURMURHASH_H

#define ___MURMURHASH_H   0

prevent duplicate header error macro

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