hash_utils::MurmurHash3 Class Reference
#include <hash.h>
List of all members.
Detailed Description
Definition at line 27 of file hash.h.
Member Typedef Documentation
Constructor & Destructor Documentation
hash_utils::MurmurHash3::MurmurHash3 |
( |
unsigned int |
seed = 0xe086c5ff |
) |
[inline] |
Member Function Documentation
Definition at line 53 of file hash.cpp.
References fHash, fSize, MixTail(), and mmix().
00054 {
00055 fSize += len;
00056
00057 while(len >= 4) {
00058 UInt_t k = *(reinterpret_cast<const UInt_t*>(msg_ptr));
00059 mmix(fHash, k);
00060 msg_ptr += 4;
00061 len -= 4;
00062 }
00063
00064 MixTail(msg_ptr,len);
00065 }
void hash_utils::MurmurHash3::final_mix |
( |
Hash_t & |
h |
) |
[inline, private] |
Definition at line 55 of file hash.h.
Referenced by End().
00056 {
00057 h ^= h >> 16; h *= 0x85ebca6b;
00058 h ^= h >> 13; h *= 0xc2b2ae35;
00059 h ^= h >> 16;
00060 }
void hash_utils::MurmurHash3::mmix |
( |
Hash_t & |
h, |
|
|
UInt_t & |
bits | |
|
) |
| | [inline, private] |
UInt_t hash_utils::MurmurHash3::rot32 |
( |
UInt_t |
bits, |
|
|
Rot_t |
r | |
|
) |
| | [inline, private] |
Definition at line 44 of file hash.h.
Referenced by mmix().
00045 {
00046 return (bits << r) | (bits >> (32 - r));
00047 }
Member Data Documentation
The documentation for this class was generated from the following files: