]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sha512 - use standard ror64()
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 14 Jan 2012 18:44:49 +0000 (21:44 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Feb 2012 04:12:33 +0000 (12:12 +0800)
commit7fc3dde7f26e64a8301e6b2ed6a8cd0c9616c8b2
tree53ee15dd4d1a2122d0e571dc8263353acb54f333
parent0ff7773eeec553db4c2bc874d8e5c9d7ee59eb92
crypto: sha512 - use standard ror64()

Use standard ror64() instead of hand-written.
There is no standard ror64, so create it.

The difference is shift value being "unsigned int" instead of uint64_t
(for which there is no reason). gcc starts to emit native ROR instructions
which it doesn't do for some reason currently. This should make the code
faster.

Patch survives in-tree crypto test and ping flood with hmac(sha512) on.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sha512_generic.c
include/linux/bitops.h