diff options
author | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2011-04-11 20:45:44 +0000 |
---|---|---|
committer | tanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2011-04-11 20:45:44 +0000 |
commit | 833fd8d1baf463eeeeff29a86fa29a67588453f0 (patch) | |
tree | 0f7d1994ea359fb73dce2e3ae79e11dc1bfc1fee /MurmurHash3.cpp | |
parent | c2b49e0d2168979b648edcc449a36292449dd5f5 (diff) | |
download | src-833fd8d1baf463eeeeff29a86fa29a67588453f0.tar.gz |
Make verification failure print the hash names
Fix typo in murmur3f (rotl values didn't match)
git-svn-id: http://smhasher.googlecode.com/svn/trunk@131 77a7d1d3-4c08-bdc2-d393-d5859734b01a
Diffstat (limited to 'MurmurHash3.cpp')
-rw-r--r-- | MurmurHash3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MurmurHash3.cpp b/MurmurHash3.cpp index 8ce4688..97883fa 100644 --- a/MurmurHash3.cpp +++ b/MurmurHash3.cpp @@ -310,7 +310,7 @@ void MurmurHash3_x64_128 ( const void * key, const int len, case 3: k1 ^= uint64_t(tail[ 2]) << 16;
case 2: k1 ^= uint64_t(tail[ 1]) << 8;
case 1: k1 ^= uint64_t(tail[ 0]) << 0;
- k1 *= c1; k1 = ROTL64(k1,29); k1 *= c2; h1 ^= k1;
+ k1 *= c1; k1 = ROTL64(k1,31); k1 *= c2; h1 ^= k1;
};
//----------
|