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:46:18 +0000 (12:46 -0800)
commitf334f74575cb0d9463d39caf4a43483cfc3dd542
treeb28a9928d16ba2b9d398c0be84f43b861bb230d9
parent23cfecf97911af4ef38afd61879f030af0410755
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