search for: d0336a1

Displaying 2 results from an estimated 2 matches for "d0336a1".

Did you mean: 1033641
2018 Mar 26
0
murmurhash3 test failures on big-endian systems
...stem to play with.) Thanks, Jeff. -- The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers. - Bill Gates, The Road Ahead, pg. 265 -------------- next part -------------- diff --git a/src/lib/murmurhash3.c b/src/lib/murmurhash3.c index 45dcc22..d0336a1 100644 --- a/src/lib/murmurhash3.c +++ b/src/lib/murmurhash3.c @@ -94,6 +94,8 @@ void murmurhash3_32 (const void *key, size_t len, uint32_t seed, h1 = fmix32(h1); + h1 = cpu32_to_be(h1); + memcpy(out, &h1, sizeof(h1)); } @@ -206,6 +208,9 @@ void murmurhash3_128(const void *key, si...
2018 Mar 26
2
murmurhash3 test failures on big-endian systems
Hi Aki, On 15:55 Mon 26 Mar , Aki Tuomi wrote: > On 26.03.2018 15:49, Apollon Oikonomopoulos wrote: > > Hi, > > > > The dovecot 2.3.0.1 Debian package currently fails to build on all > > big-endian architectures[1], due to murmurhash3 tests failing. The > > relevant output from e.g. s390x is: > > > > test-murmurhash3.c:22: Assert(#8) failed: