crypto: sha512 - Use binary and instead of modulus
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Jan 2012 04:03:16 +0000 (15:03 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Jan 2012 04:03:16 +0000 (15:03 +1100)
commit58d7d18b5268febb8b1391c6dffc8e2aaa751fcd
tree18add451538ba5454656c09c35f4047d29f2869e
parent51fc6dc8f948047364f7d42a4ed89b416c6cc0a3
crypto: sha512 - Use binary and instead of modulus

The previous patch used the modulus operator over a power of 2
unnecessarily which may produce suboptimal binary code.  This
patch changes changes them to binary ands instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha512_generic.c