From d6ce709c13ca8793825f88324bfad9e6bb7f588f Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Sun, 25 Aug 2019 10:32:03 +0200 Subject: Repeat tzcnt for exceptional lowz case. Remove dead code. --- mpn/x86_64/bd2/gcd_22.asm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mpn/x86_64/bd2/gcd_22.asm b/mpn/x86_64/bd2/gcd_22.asm index eba0846e2..7f402e603 100644 --- a/mpn/x86_64/bd2/gcd_22.asm +++ b/mpn/x86_64/bd2/gcd_22.asm @@ -119,10 +119,6 @@ L(gcd_11): mov u0, %rsi TCALL( mpn_gcd_11) -L(count_better): - rep;bsf u0, cnt C tzcnt! - jmp L(shr) - L(lowz):C We come here when v0 - u0 = 0 C 1. If v1 - u1 = 0, then gcd is u = v. C 2. Else compute gcd_21({v1,v0}, |u1-v1|) @@ -131,6 +127,7 @@ L(lowz):C We come here when v0 - u0 = 0 je L(end) xor t1, t1 + rep;bsf t0, cnt C tzcnt! mov u0, s0 mov u1, s1 mov u1, u0 -- cgit v1.2.1