Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/crypto: x86/blake2s: Drop check for nblocks == 0

Since blake2s_compress() is always passed nblocks != 0, remove the
unnecessary check for nblocks == 0 from blake2s_compress_ssse3().

Note that this makes it consistent with blake2s_compress_avx512() in the
same file as well as the arm32 blake2s_compress().

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251102234209.62133-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

-3
-3
lib/crypto/x86/blake2s-core.S
··· 45 45 46 46 .text 47 47 SYM_FUNC_START(blake2s_compress_ssse3) 48 - testq %rdx,%rdx 49 - je .Lendofloop 50 48 movdqu (%rdi),%xmm0 51 49 movdqu 0x10(%rdi),%xmm1 52 50 movdqa ROT16(%rip),%xmm12 ··· 166 168 movdqu %xmm0,(%rdi) 167 169 movdqu %xmm1,0x10(%rdi) 168 170 movdqu %xmm14,0x20(%rdi) 169 - .Lendofloop: 170 171 RET 171 172 SYM_FUNC_END(blake2s_compress_ssse3) 172 173