Re: [ovs-dev] [PATCH v2] lib/hash: Use CRC32 for hashing.

2014-07-11 Thread Jarno Rajahalme
Thanks for the review, pushed to master, Jarno On Jul 7, 2014, at 3:28 PM, Ben Pfaff wrote: > On Mon, Jul 07, 2014 at 01:16:59PM -0700, Jarno Rajahalme wrote: >> Use CRC32 intrinsics for hash computations when building for >> X86_64 with SSE4_2. >> >> Add a new hash_words64() and change hash

Re: [ovs-dev] [PATCH v2] lib/hash: Use CRC32 for hashing.

2014-07-07 Thread Ben Pfaff
On Mon, Jul 07, 2014 at 01:16:59PM -0700, Jarno Rajahalme wrote: > Use CRC32 intrinsics for hash computations when building for > X86_64 with SSE4_2. > > Add a new hash_words64() and change hash_words() to be inlined when > 'n_words' is a compile-time constant. > > Signed-off-by: Jarno Rajahalme

[ovs-dev] [PATCH v2] lib/hash: Use CRC32 for hashing.

2014-07-07 Thread Jarno Rajahalme
Use CRC32 intrinsics for hash computations when building for X86_64 with SSE4_2. Add a new hash_words64() and change hash_words() to be inlined when 'n_words' is a compile-time constant. Signed-off-by: Jarno Rajahalme --- v2: Changed hash_words to be inlined only when 'n_words' is known to be a