qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

xxhash: match output against the original xxhash32

Change the order in which we extract a/b and c/d to
match the output of the upstream xxhash32.

Tested with:
https://github.com/cota/xxhash/tree/qemu

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

authored by

Emilio G. Cota and committed by
Richard Henderson
b7c2cd08 fe656e31

+4 -4
+4 -4
include/qemu/xxhash.h
··· 55 55 uint32_t v2 = QEMU_XXHASH_SEED + PRIME32_2; 56 56 uint32_t v3 = QEMU_XXHASH_SEED + 0; 57 57 uint32_t v4 = QEMU_XXHASH_SEED - PRIME32_1; 58 - uint32_t a = ab >> 32; 59 - uint32_t b = ab; 60 - uint32_t c = cd >> 32; 61 - uint32_t d = cd; 58 + uint32_t a = ab; 59 + uint32_t b = ab >> 32; 60 + uint32_t c = cd; 61 + uint32_t d = cd >> 32; 62 62 uint32_t h32; 63 63 64 64 v1 += a * PRIME32_2;