[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 11 23:24:54 CET 2013


details:   /var/hg/gmp/rev/a140a0c5c335
changeset: 15561:a140a0c5c335
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 11 23:24:25 2013 +0100
description:
Read 32 bits for 'n' arguments on DOS64.

details:   /var/hg/gmp/rev/f8eb866c9944
changeset: 15562:f8eb866c9944
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 11 23:24:48 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog                |   2 ++
 mpn/x86_64/aorscnd_n.asm |  14 +++++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 3e74ad5ad65e -r f8eb866c9944 ChangeLog
--- a/ChangeLog	Mon Mar 11 19:42:15 2013 +0100
+++ b/ChangeLog	Mon Mar 11 23:24:48 2013 +0100
@@ -1,5 +1,7 @@
 2013-03-11  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/x86_64/aorscnd_n.asm: Read 32 bits for 'n' arguments on DOS64.
+
 	* tests/mpz/t-powm_ui.c: Test larger arguments.  General cleanup.
 
 	* mpz/powm_ui.c (mod): Adhere to mpn_mu_div_qr's overlap requirements.
diff -r 3e74ad5ad65e -r f8eb866c9944 mpn/x86_64/aorscnd_n.asm
--- a/mpn/x86_64/aorscnd_n.asm	Mon Mar 11 19:42:15 2013 +0100
+++ b/mpn/x86_64/aorscnd_n.asm	Mon Mar 11 23:24:48 2013 +0100
@@ -1,6 +1,6 @@
 dnl  AMD64 mpn_addcnd_n, mpn_subcnd_n
 
-dnl  Copyright 2011, 2012 Free Software Foundation, Inc.
+dnl  Copyright 2011, 2012, 2013 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 
@@ -44,11 +44,11 @@
 C    for any other processor.
 
 C INPUT PARAMETERS
-define(`cnd',	`%rdi')
-define(`rp',	`%rsi')
-define(`up',	`%rdx')
-define(`vp',	`%rcx')
-define(`n',	`%r8')
+define(`cnd',	`%rdi')	dnl rcx
+define(`rp',	`%rsi')	dnl rdx
+define(`up',	`%rdx')	dnl r8
+define(`vp',	`%rcx')	dnl r9
+define(`n',	`%r8')	dnl rsp+40
 
 ifdef(`OPERATION_addcnd_n', `
 	define(ADDSUB,	      add)
@@ -69,7 +69,7 @@
 	ALIGN(16)
 PROLOGUE(func)
 	FUNC_ENTRY(4)
-IFDOS(`	mov	56(%rsp), %r8	')
+IFDOS(`	mov	56(%rsp), R32(%r8)')
 	push	%rbx
 	push	%rbp
 	push	%r12


More information about the gmp-commit mailing list