Re: hash and bitrotate

2009-06-18 Thread Simon Josefsson
Eric Blake writes: > Here's the patch. Simon, as bitrotate owner, do you also agree? Looks fine, thanks. /Simon

Re: hash and bitrotate

2009-06-18 Thread Jim Meyering
Eric Blake wrote: ... >>From dd342c74a01a02cd35f53da621d6ac122fd606f5 Mon Sep 17 00:00:00 2001 > From: Eric Blake > Date: Thu, 18 Jun 2009 13:31:11 -0600 > Subject: [PATCH] hash: make rotation more obvious > > * modules/hash (Depends-on): Add bitrotate and stdint. > * lib/bitrotate.h (rotl_sz, rot

Re: hash and bitrotate

2009-06-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 6/18/2009 1:06 PM: > According to Eric Blake on 6/18/2009 1:00 PM: >>> Then we can use this: >>> val = rotr (val, 3); >> For rotr64, it is probably superfluous; but for sizes smaller than int >> smaller sizes it makes a