lib/hash: Use CRC32 for hashing.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 11 Jul 2014 12:57:11 +0000 (05:57 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 11 Jul 2014 12:57:11 +0000 (05:57 -0700)
commitff8eeabd0dfa967c161c1591daea826f0da23da6
tree8fdc34232365a3c0aae9bd7683b72d9ee46033be
parentafae68b16f01559df44e3fd62f1fc020faec5731
lib/hash: Use CRC32 for hashing.

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 <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/hash.c
lib/hash.h
tests/test-hash.c