[Gmp-commit] /var/hg/gmp: Identical changes x86_64/k8.

mercurial at gmplib.org mercurial at gmplib.org
Thu Oct 24 19:30:19 CEST 2013


details:   /var/hg/gmp/rev/2b7cdc0258ca
changeset: 16078:2b7cdc0258ca
user:      Niels Möller <nisse at lysator.liu.se>
date:      Thu Oct 24 19:29:33 2013 +0200
description:
Identical changes x86_64/k8.

diffstat:

 ChangeLog                       |  1 +
 mpn/x86_64/k8/div_qr_1n_pi1.asm |  4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 69a493d7a8b5 -r 2b7cdc0258ca ChangeLog
--- a/ChangeLog	Thu Oct 24 19:20:19 2013 +0200
+++ b/ChangeLog	Thu Oct 24 19:29:33 2013 +0200
@@ -2,6 +2,7 @@
 
 	* mpn/x86_64/div_qr_1n_pi1.asm: Bugfixes, for case n == 1 and
 	in-place operation.
+	* mpn/x86_64/k8/div_qr_1n_pi1.asm: Likewise.
 
 	* mpn/generic/div_qr_1n_pi1.c (mpn_div_qr_1n_pi1): Bug fixes,
 	off-by-one MPN_INCR_U, and support for in-place operation.
diff -r 69a493d7a8b5 -r 2b7cdc0258ca mpn/x86_64/k8/div_qr_1n_pi1.asm
--- a/mpn/x86_64/k8/div_qr_1n_pi1.asm	Thu Oct 24 19:20:19 2013 +0200
+++ b/mpn/x86_64/k8/div_qr_1n_pi1.asm	Thu Oct 24 19:29:33 2013 +0200
@@ -84,6 +84,7 @@
 	mov	(UP), U0
 	add	U0, %rax
 	adc	T, %rdx
+	mov	%rdx, T
 	imul	D, %rdx
 	sub	%rdx, U0
 	cmp	U0, %rax
@@ -121,12 +122,13 @@
 	mul	U1
 	mov	%rax, Q0
 	add	U1, %rdx
-	mov	%rdx, (QP, UN, 8)
+	mov	%rdx, T
 
 	mov	B2, %rax
 	mul	U1
 	mov	-8(UP, UN, 8), U0
 	mov	(UP, UN, 8), U1
+	mov	T, (QP, UN, 8)
 	add	%rax, U0
 	adc	%rdx, U1
 	sbb	U2, U2


More information about the gmp-commit mailing list