search for: cpu32_to_b

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

Did you mean: cpu32_to_be
2018 Mar 26
0
murmurhash3 test failures on big-endian systems
...-------------- 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, size_t len, uint32_t seed, h1 += h2; h2 += h1; + h1 = cpu64_to_be(h1); + h2 = cpu64_to_be(h2); + memcpy(out, &h1, sizeof(h1)); memcpy(out+sizeof(h1), &h2, sizeof(h2));...
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: