Open GoogleCodeExporter opened 9 years ago
The fix is very simple, as reference we could start from this code
https://github.com/hideo55/node-murmurhash3/blob/master/src/MurmurHash3.cpp
see function getblock(), for BIG_ENDIAN it should return swapped bytes, and
final rows,
((uint64_t*) out)[0] = h1;
((uint64_t*) out)[1] = h2;
for BIG_ENDIAN platform also should be swapped:
((uint64_t*) out)[0] = BYTESWAP64(h1);
((uint64_t*) out)[1] = BYTESWAP64(h2);
as result I've got the same values for both platforms.
Original comment by alexandr.ustinov
on 8 Dec 2014 at 5:28
Original issue reported on code.google.com by
alexandr.ustinov
on 5 Dec 2014 at 4:35