[Gmp-commit] /var/hg/gmp: Add DOS64 support to recently added files.

mercurial at gmplib.org mercurial at gmplib.org
Fri Aug 2 13:24:11 CEST 2013


details:   /var/hg/gmp/rev/43339e712783
changeset: 15905:43339e712783
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Aug 02 13:23:26 2013 +0200
description:
Add DOS64 support to recently added files.

diffstat:

 mpn/x86_64/bd1/mul_basecase.asm      |  7 +++++++
 mpn/x86_64/coreisbr/mul_basecase.asm |  7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diffs (68 lines):

diff -r 57e195e2d75f -r 43339e712783 mpn/x86_64/bd1/mul_basecase.asm
--- a/mpn/x86_64/bd1/mul_basecase.asm	Thu Aug 01 23:32:33 2013 +0200
+++ b/mpn/x86_64/bd1/mul_basecase.asm	Fri Aug 02 13:23:26 2013 +0200
@@ -69,10 +69,15 @@
 define(`n',	`%rbp')
 define(`v0',	`%r9')
 
+ABI_SUPPORT(DOS64)
+ABI_SUPPORT(STD64)
+
 ASM_START()
 	TEXT
 	ALIGN(16)
 PROLOGUE(mpn_mul_basecase)
+	FUNC_ENTRY(4)
+IFDOS(`	mov	56(%rsp), %r8d	')
 	push	%rbx
 	push	%rbp
 	mov	un_param, un		C free up rdx
@@ -116,6 +121,7 @@
 	mov	%rdx, (rp)
 	pop	%rbp
 	pop	%rbx
+	FUNC_EXIT()
 	ret
 
 L(m111):lea	1(un), n		C un = 3, 7, 11, ...
@@ -395,5 +401,6 @@
 	pop	%r12
 L(ret2):pop	%rbp
 	pop	%rbx
+	FUNC_EXIT()
 	ret
 EPILOGUE()
diff -r 57e195e2d75f -r 43339e712783 mpn/x86_64/coreisbr/mul_basecase.asm
--- a/mpn/x86_64/coreisbr/mul_basecase.asm	Thu Aug 01 23:32:33 2013 +0200
+++ b/mpn/x86_64/coreisbr/mul_basecase.asm	Fri Aug 02 13:23:26 2013 +0200
@@ -70,10 +70,15 @@
 define(`n',	`%rbp')
 define(`v0',	`%r9')
 
+ABI_SUPPORT(DOS64)
+ABI_SUPPORT(STD64)
+
 ASM_START()
 	TEXT
 	ALIGN(16)
 PROLOGUE(mpn_mul_basecase)
+	FUNC_ENTRY(4)
+IFDOS(`	mov	56(%rsp), %r8d	')
 	push	%rbx
 	push	%rbp
 	mov	un_param, un		C free up rdx
@@ -117,6 +122,7 @@
 	mov	%rdx, (rp)
 	pop	%rbp
 	pop	%rbx
+	FUNC_EXIT()
 	ret
 
 L(m111):lea	1(un), n		C un = 3, 7, 11, ...
@@ -387,5 +393,6 @@
 	pop	%r12
 L(ret2):pop	%rbp
 	pop	%rbx
+	FUNC_EXIT()
 	ret
 EPILOGUE()


More information about the gmp-commit mailing list