hash: make rotation more obvious
authorEric Blake <ebb9@byu.net>
Thu, 18 Jun 2009 19:31:11 +0000 (13:31 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 19 Jun 2009 01:54:46 +0000 (19:54 -0600)
commit3ea7149254196fdcf06e81140c3d6c2910e9daad
treedecd73f8a7c778664f39c7e32a8a97447b3c5e7d
parenteabc7530f49e976f89c8a6da1ca63e434a59daa5
hash: make rotation more obvious

* modules/hash (Depends-on): Add bitrotate and stdint.
* lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
* lib/hash.c (headers): Drop limits.h.  Add stdint.h.
(SIZE_MAX): Rely on headers for definition.
(hash_string) [USE_DIFF_HASH]: Use rotl_sz.
(raw_hasher): Use rotr_sz.
Suggested by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/bitrotate.h
lib/hash.c
modules/hash