]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: lib/sha256 - Unroll LOAD and BLEND loops
authorArvind Sankar <nivedita@alum.mit.edu>
Sun, 25 Oct 2020 14:31:19 +0000 (10:31 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Oct 2020 06:35:04 +0000 (17:35 +1100)
commit44b0639ac6d543cc5ec93eed329f5832b486dcf8
tree5177e8c734e1f2b4379c23f4f5860dbde4be3f7f
parent18dbd89191784065d04c6dbe70d02e152430c463
crypto: lib/sha256 - Unroll LOAD and BLEND loops

Unrolling the LOAD and BLEND loops improves performance by ~8% on x86_64
(tested on Broadwell Xeon) while not increasing code size too much.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/sha256.c