]> err.no Git - linux-2.6/commit
hash: add explicit u32 and u64 versions of hash
authorMatthew Wilcox <matthew@wil.cx>
Wed, 6 Feb 2008 09:36:14 +0000 (01:36 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:00 +0000 (10:41 -0800)
commit4e701482d1d7b90c358e2bd244bb71623f767120
treea054f87e31645eba4d9e2c76396c54afbe6fa895
parentd9ae90ac4bdce769ddb27c2e24c3351a30c3daf8
hash: add explicit u32 and u64 versions of hash

The 32-bit version is more efficient (and apparently gives better hash
results than the 64-bit version), so users who are only hashing a 32-bit
quantity can now opt to use the 32-bit version explicitly, rather than
promoting to a long.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/hash.h