hash: Make basis of hash_words64() 32 bits.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 6 Jan 2015 21:48:54 +0000 (13:48 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 6 Jan 2015 22:47:30 +0000 (14:47 -0800)
commit4ad07ad7c142207a5fc69ffafcb63601d82dd755
treedeae49962af2517dbbdbaf851ec6f2eb9ba4dc8f
parentb2623fdbb31570e7e3e39ac9c074b0978b4dd2dc
hash: Make basis of hash_words64() 32 bits.

The basis of hash_words64() was 64 bits, even when the hash value is
32 bits, thus confusing the domain and the range of the function.
This patch fixes this by making the basis an uint32_t.

Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/hash.c
lib/hash.h