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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Feb 2012 20:48:12 +0000 (12:48 -0800)
commitd122aed32ad780e0c337551121c36a5d5e1c2ee0
tree1b76f8a32d9a5ad20507e790f17674e953f41e4c
parent0f74c152fd01e1070c141eb10c70cc0f6fb39e22
crypto: sha512 - Use binary and instead of modulus

commit 58d7d18b5268febb8b1391c6dffc8e2aaa751fcd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/sha512_generic.c