]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit516ec93c2a79349d8d5c4035763d0d7b1865a65a
tree18add451538ba5454656c09c35f4047d29f2869e
parent4d47c42e3f28135cce7840f6176a792f630d124b
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