block-sha1: try to use rol/ror appropriately
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Aug 2009 02:42:15 +0000 (19:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Aug 2009 20:56:45 +0000 (13:56 -0700)
commitb8e48a89b8f581eaf95b57782bb8e620ca30e968
tree6b2393f0958bbdd47205f6558e8940ff338c381f
parentb26a9d50899a5d65bafcb521c5495f03b2e2e0e9
block-sha1: try to use rol/ror appropriately

Use the one with the smaller constant.  It _can_ generate slightly
smaller code (a constant of 1 is special), but perhaps more importantly
it's possibly faster on any uarch that does a rotate with a loop.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.c