-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 6/18/2009 1:00 PM: >> Then we can use this: > >> val = rotr<something> (val, 3); > > For rotr64, it is probably superfluous; but for sizes smaller than int > smaller sizes it makes a difference. I think that warrants a separate > patch, since it also changes the dependencies for hash.c, as well as > touching the bitrotate module. But it does sound like a nice idea.
I missed some context there. What I meant was that the '& nnn_MAX' is superfluous for uint64_t in bitrotate.h. But the use of rotr<something> in hash.c is a good idea. - -- Don't work too hard, make some time for fun as well! Eric Blake [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko6kBoACgkQ84KuGfSFAYABDgCfdsLIxQmZ1r1ZxKfRqZGFDRBP Y/AAnRbKpwPvdjASej+KqV38gm9m4pdP =a7lG -----END PGP SIGNATURE-----
