summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-07-18 12:19:00 -0700
committerEric Biggers <ebiggers@kernel.org>2025-07-20 21:42:42 -0700
commit42e3376e0954d7e589e5a53d6149835cad64e8e6 (patch)
treee19055e0addaf835543c0e4df000cc1d3c996e79 /scripts/lib/kdoc/kdoc_files.py
parentf88ed14aa0ef64ff5633605114efe313a0bed84b (diff)
lib/crypto: x86/sha1-ni: Convert to use rounds macros
The assembly code that does all 80 rounds of SHA-1 is highly repetitive. Replace it with 20 expansions of a macro that does 4 rounds, using the macro arguments and .if directives to handle the slight variations between rounds. This reduces the length of sha1-ni-asm.S by 129 lines while still producing the exact same object file. This mirrors sha256-ni-asm.S which uses this same strategy. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250718191900.42877-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions