From f10e1a162c6503571510deafdab2982e3680a4b4 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Mon, 9 Jan 2017 00:35:34 +0200 Subject: [PATCH 8/8] Don't do a calculation here. 41-32 is 9, and that's the bit for SSSE3, so add a comment clarifying what we're testing. --- crypto/chacha/asm/chacha-x86_64.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/chacha/asm/chacha-x86_64.pl b/crypto/chacha/asm/chacha-x86_64.pl index 807ee58..679a2f4 100755 --- a/crypto/chacha/asm/chacha-x86_64.pl +++ b/crypto/chacha/asm/chacha-x86_64.pl @@ -252,7 +252,7 @@ $code.=<<___ if ($avx>2); jc .LChaCha20_avx512 ___ $code.=<<___; - test \$`1<<(41-32)`,%r10d + test \$`1<<9`,%r10d # check for SSSE3 jnz .LChaCha20_ssse3 push %rbx -- 2.11.0