From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aobPj-0005Gu-Ki for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aobPg-0003AA-Bv for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:45:51 -0400 Received: from mail-qg0-x243.google.com ([2607:f8b0:400d:c04::243]:35680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aobPg-0003A6-6i for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:45:48 -0400 Received: by mail-qg0-x243.google.com with SMTP id b32so10801401qgf.2 for ; Fri, 08 Apr 2016 11:45:48 -0700 (PDT) Sender: Richard Henderson References: <1460050358-25025-1-git-send-email-cota@braap.org> <1460050358-25025-10-git-send-email-cota@braap.org> From: Richard Henderson Message-ID: <5707FC58.2080904@twiddle.net> Date: Fri, 8 Apr 2016 11:45:44 -0700 MIME-Version: 1.0 In-Reply-To: <1460050358-25025-10-git-send-email-cota@braap.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 09/13] exec: add tb_hash_func5, derived from xxhash List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , QEMU Developers , MTTCG Devel Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Peter Crosthwaite , Peter Maydell , Sergey Fedorov On 04/07/2016 10:32 AM, Emilio G. Cota wrote: > +#include Should already be done by > +/* > + * Note : although _rotl exists for minGW (GCC under windows), performance > + * seems poor. > + */ > +#if defined(_MSC_VER) > +# define XXH_rotl32(x, r) _rotl(x, r) > +#else > +# define XXH_rotl32(x, r) ((x << r) | (x >> (32 - r))) > +#endif Please use rol32 from > +static inline > +uint32_t tb_hash_func5(uint64_t a0, uint64_t b0, uint32_t e, int seed) > +{ Is there really any point in passing in "seed" anymore? We certainly don't want different values passed in... r~