[Gmp-commit] /var/hg/gmp: mpn/x86_64/coreihwl/gcd_11.asm: Move the fix outsid...
mercurial at gmplib.org
mercurial at gmplib.org
Tue Aug 13 23:55:01 UTC 2019
details: /var/hg/gmp/rev/2f96fbd0cb6f
changeset: 17811:2f96fbd0cb6f
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Aug 14 01:54:56 2019 +0200
description:
mpn/x86_64/coreihwl/gcd_11.asm: Move the fix outside the loop
diffstat:
mpn/x86_64/coreihwl/gcd_11.asm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r bb86e66536d5 -r 2f96fbd0cb6f mpn/x86_64/coreihwl/gcd_11.asm
--- a/mpn/x86_64/coreihwl/gcd_11.asm Wed Aug 14 01:06:08 2019 +0200
+++ b/mpn/x86_64/coreihwl/gcd_11.asm Wed Aug 14 01:54:56 2019 +0200
@@ -76,13 +76,14 @@
mov v0, %rax C
sub u0, v0 C
jz L(end) C
+ mov u0, %r9 C
ALIGN(16) C
L(top): bsf v0, %rcx C
- mov u0, %r9 C
sub %rax, u0 C u - v
cmovc v0, u0 C u = |u - v|
cmovc %r9, %rax C v = min(u,v)
+ shrx( %rcx, u0, %r9) C
shrx( %rcx, u0, u0) C
mov %rax, v0 C
sub u0, v0 C v - u
More information about the gmp-commit
mailing list