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)
commit18d05ca4486fe38991c3166b1f4df26b8a029665
tree5177e8c734e1f2b4379c23f4f5860dbde4be3f7f
parent63642d5c141f1bcbe97f7895467a724ad2e3f346
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