This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
#include "../../../common/assert/assert.h"
|
||||
#include "../../../common/misc/misc_utils.h"
|
||||
|
||||
#define _bigConstant(x) (x##LLU)
|
||||
|
||||
wp_intern inline void _validateIO(const WpMur3HasherIO *io);
|
||||
wp_intern inline u64 _fmix64(u64 k);
|
||||
|
||||
@@ -19,8 +17,8 @@ void wpX64Mur3Hasher128(WpU8Stream *bytes, void *hasher_io) {
|
||||
u64 h1 = io->seed;
|
||||
u64 h2 = io->seed;
|
||||
|
||||
const u64 c1 = _bigConstant(0x87c37b91114253d5);
|
||||
const u64 c2 = _bigConstant(0x4cf5ad432745937f);
|
||||
const u64 c1 = wpU64Const(0x87c37b91114253d5);
|
||||
const u64 c2 = wpU64Const(0x4cf5ad432745937f);
|
||||
|
||||
//----------
|
||||
// body
|
||||
@@ -103,9 +101,9 @@ wp_intern inline void _validateIO(const WpMur3HasherIO *io) {
|
||||
|
||||
wp_intern inline u64 _fmix64(u64 k) {
|
||||
k ^= k >> 33;
|
||||
k *= _bigConstant(0xff51afd7ed558ccd);
|
||||
k *= wpU64Const(0xff51afd7ed558ccd);
|
||||
k ^= k >> 33;
|
||||
k *= _bigConstant(0xc4ceb9fe1a85ec53);
|
||||
k *= wpU64Const(0xc4ceb9fe1a85ec53);
|
||||
k ^= k >> 33;
|
||||
|
||||
return k;
|
||||
|
||||
Reference in New Issue
Block a user