diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2012-01-14 21:44:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-20 12:48:14 -0800 |
commit | 7b5644ec051e133d59249b7f19d2d8fef9a8d323 (patch) | |
tree | 33a58605285c1accdcdc9adc2918e4be6a4771ab /crypto/pcompress.c | |
parent | 16c7560fcca939095d099da4316f2df66aebc3ba (diff) | |
download | kernel_samsung_smdk4412-7b5644ec051e133d59249b7f19d2d8fef9a8d323.zip kernel_samsung_smdk4412-7b5644ec051e133d59249b7f19d2d8fef9a8d323.tar.gz kernel_samsung_smdk4412-7b5644ec051e133d59249b7f19d2d8fef9a8d323.tar.bz2 |
crypto: sha512 - use standard ror64()
commit f2ea0f5f04c97b48c88edccba52b0682fbe45087 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/pcompress.c')
0 files changed, 0 insertions, 0 deletions