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

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

 



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~




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux