aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 18:52:11 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 18:52:11 -0800
commit605cbbf78c92262e88eb4a830fd2ec8a613cebb1 (patch)
tree2775b51b014299a70f0e2fa84722bf0e842a466a
parentpoly1305: only export neon symbols when in use (diff)
downloadWireGuard-605cbbf78c92262e88eb4a830fd2ec8a613cebb1.tar.xz
WireGuard-605cbbf78c92262e88eb4a830fd2ec8a613cebb1.zip
poly1305: cleanup leftover debugging changes
-rw-r--r--src/crypto/zinc/poly1305/poly1305-x86_64.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/zinc/poly1305/poly1305-x86_64.pl b/src/crypto/zinc/poly1305/poly1305-x86_64.pl
index 4456a1e..8a532bf 100644
--- a/src/crypto/zinc/poly1305/poly1305-x86_64.pl
+++ b/src/crypto/zinc/poly1305/poly1305-x86_64.pl
@@ -252,7 +252,7 @@ $code.=<<___ if (!$kernel);
lea poly1305_blocks_x86_64(%rip),%r10
lea poly1305_emit_x86_64(%rip),%r11
___
-$code.=<<___ if (!$kernel && $avx && 1);
+$code.=<<___ if (!$kernel && $avx);
mov OPENSSL_ia32cap_P+4(%rip),%r9
lea poly1305_blocks_avx(%rip),%rax
lea poly1305_emit_avx(%rip),%rcx
@@ -260,12 +260,12 @@ $code.=<<___ if (!$kernel && $avx && 1);
cmovc %rax,%r10
cmovc %rcx,%r11
___
-$code.=<<___ if (!$kernel && $avx>1 && 1);
+$code.=<<___ if (!$kernel && $avx>1);
lea poly1305_blocks_avx2(%rip),%rax
bt \$`5+32`,%r9 # AVX2?
cmovc %rax,%r10
___
-$code.=<<___ if (!$kernel && $avx>3 && 0);
+$code.=<<___ if (!$kernel && $avx>3);
mov \$`(1<<31|1<<21|1<<16)`,%rax
shr \$32,%r9
and %rax,%r9