Little annotations for the murmur hash function.
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
// 1. It will not work incrementally.
|
// 1. It will not work incrementally.
|
||||||
// 2. It will not produce the same results on little-endian and big-endian
|
// 2. It will not produce the same results on little-endian and big-endian
|
||||||
// machines.
|
// machines. ->TODO
|
||||||
|
|
||||||
unsigned int murmurhash2(const void * key, int len, const unsigned int seed)
|
unsigned int murmurhash2(const void * key, int len, const unsigned int seed)
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
#ifndef _BLOOM_MURMURHASH2
|
#ifndef _BLOOM_MURMURHASH2
|
||||||
#define _BLOOM_MURMURHASH2
|
#define _BLOOM_MURMURHASH2
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Generates and returns a hash code from a byte array.
|
||||||
|
*/
|
||||||
unsigned int murmurhash2(const void * key, int len, const unsigned int seed);
|
unsigned int murmurhash2(const void * key, int len, const unsigned int seed);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user