[Gmp-commit] /var/hg/gmp: Make it actually work for DOS64.

mercurial at gmplib.org mercurial at gmplib.org
Tue Apr 3 11:39:08 CEST 2012


details:   /var/hg/gmp/rev/5b41f5fdb823
changeset: 14790:5b41f5fdb823
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Apr 03 11:39:06 2012 +0200
description:
Make it actually work for DOS64.

diffstat:

 ChangeLog                         |  4 ++++
 mpn/x86_64/coreisbr/aorrlsh_n.asm |  6 ++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 1262d026cdb5 -r 5b41f5fdb823 ChangeLog
--- a/ChangeLog	Mon Apr 02 17:43:38 2012 +0200
+++ b/ChangeLog	Tue Apr 03 11:39:06 2012 +0200
@@ -1,3 +1,7 @@
+2012-04-03  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/x86_64/coreisbr/aorrlsh_n.asm: Make it actually work for DOS64.
+
 2012-04-02 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpz/oddfac_1.c: Initalize size for ASSERT.
diff -r 1262d026cdb5 -r 5b41f5fdb823 mpn/x86_64/coreisbr/aorrlsh_n.asm
--- a/mpn/x86_64/coreisbr/aorrlsh_n.asm	Mon Apr 02 17:43:38 2012 +0200
+++ b/mpn/x86_64/coreisbr/aorrlsh_n.asm	Tue Apr 03 11:39:06 2012 +0200
@@ -4,7 +4,7 @@
 
 dnl  Contributed to the GNU project by Torbjorn Granlund.
 
-dnl  Copyright 2011 Free Software Foundation, Inc.
+dnl  Copyright 2011, 2012 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 
@@ -70,6 +70,7 @@
 	ALIGN(32)
 PROLOGUE(func_n)
 	DOS64_ENTRY(4)
+IFDOS(`	mov	56(%rsp), %r8d	')	C cnt
 	push	%rbx
 	xor	R32(%rbx), R32(%rbx)	C clear CF save register
 L(ent):	push	%rbp
@@ -194,7 +195,8 @@
 EPILOGUE()
 PROLOGUE(func_nc)
 	DOS64_ENTRY(4)
-IFDOS(`	mov	56(%rsp), %r8	')
+IFDOS(`	mov	56(%rsp), %r8d	')	C cnt
+IFDOS(`	mov	64(%rsp), %r9	')	C cy
 	push	%rbx
 	neg	cy
 	sbb	R32(%rbx), R32(%rbx)	C initialise CF save register


More information about the gmp-commit mailing list