Skip to content

lib/crypto: Clean up and optimize sha512-avx2-asm.S

Eric Biggers linux-crypto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib/crypto: x86/sha512-avx2: Clean up loading and byte-swapping the datalib/crypto/x86/sha512-avx2-asm.S+11 -230 replies
2/4lib/crypto: x86/sha512-avx2: Optimize message schedulelib/crypto/x86/sha512-avx2-asm.S+74 -830 replies
3/4lib/crypto: x86/sha512-avx2: Factor out SHA512_Roundlib/crypto/x86/sha512-avx2-asm.S+47 -3080 replies
4/4lib/crypto: x86/sha512-avx2: Optimize SHA512_Roundlib/crypto/x86/sha512-avx2-asm.S+19 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] lib/crypto: Clean up and optimize sha512-avx2-asm.S

A refresh for sha512-avx2-asm.S (the SHA-512 implementation that's used on all AVX2 capable CPUs), bringing the following small benefits:

- 6% faster SHA-512 on AMD Ryzen 9 9950X (Zen 5) and 9% faster SHA-512 on Intel Sapphire Rapids.

- Negative 288 line diffstat.

- Slight reductions in text and rodata size.

- Better comments.

Eric Biggers (4):
lib/crypto: x86/sha512-avx2: Clean up loading and byte-swapping the
data
lib/crypto: x86/sha512-avx2: Optimize message schedule lib/crypto: x86/sha512-avx2: Factor out SHA512_Round lib/crypto: x86/sha512-avx2: Optimize SHA512_Round

 lib/crypto/x86/sha512-avx2-asm.S | 550 ++++++++-----------------------
 1 file changed, 131 insertions(+), 419 deletions(-)

base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f

Signature · 1 line
2.56.1