qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 10/10] accel/tcg: include cs_base in our hash calculations


From: Richard Henderson
Subject: Re: [PATCH v4 10/10] accel/tcg: include cs_base in our hash calculations
Date: Tue, 23 May 2023 16:05:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/23/23 05:50, Alex Bennée wrote:
  static inline uint32_t qemu_xxhash5(uint64_t ab, uint64_t cd, uint32_t e)
  {
-    return qemu_xxhash7(ab, cd, e, 0, 0);
+    return qemu_xxhash8(ab, cd, e, 0, 0);
  }
static inline uint32_t qemu_xxhash6(uint64_t ab, uint64_t cd, uint32_t e,
                                      uint32_t f)
  {
-    return qemu_xxhash7(ab, cd, e, f, 0);
+    return qemu_xxhash8(ab, cd, e, f, 0);
+}

The last two arguments are 32 bit.  Better as

  qemu_xxhash8(ab, cd, 0, e, f);


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]