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

mercurial at gmplib.org mercurial at gmplib.org
Tue Apr 25 21:24:40 UTC 2017


details:   /var/hg/gmp/rev/253deadf9fc8
changeset: 17367:253deadf9fc8
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Apr 24 01:19:53 2017 +0200
description:
Add a c/l #.

details:   /var/hg/gmp/rev/36b4b377a950
changeset: 17368:36b4b377a950
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Tue Apr 25 22:23:51 2017 +0200
description:
Allocate correct DOS64 frame.

diffstat:

 mpn/x86_64/divrem_2.asm      |  2 ++
 mpn/x86_64/fat/fat_entry.asm |  2 ++
 mpn/x86_64/mod_1_1.asm       |  2 ++
 mpn/x86_64/mod_1_2.asm       |  2 ++
 mpn/x86_64/mod_1_4.asm       |  2 ++
 mpn/x86_64/mod_34lsub1.asm   |  2 +-
 6 files changed, 11 insertions(+), 1 deletions(-)

diffs (81 lines):

diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/divrem_2.asm
--- a/mpn/x86_64/divrem_2.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/divrem_2.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -100,8 +100,10 @@
 	push	%r11
 IFSTD(`	mov	%r11, %rdi	')
 IFDOS(`	mov	%r11, %rcx	')
+IFDOS(`	sub	$32, %rsp	')
 	ASSERT(nz, `test $15, %rsp')
 	CALL(	mpn_invert_limb)
+IFDOS(`	add	$32, %rsp	')
 	pop	%r11
 	pop	%r10
 	pop	%r8
diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/fat/fat_entry.asm
--- a/mpn/x86_64/fat/fat_entry.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/fat/fat_entry.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -167,7 +167,9 @@
 	push	%r8
 	push	%r9
 	push	%rax
+IFDOS(`	sub	$32, %rsp	')
 	CALL(	__gmpn_cpuvec_init)
+IFDOS(`	add	$32, %rsp	')
 	pop	%rax
 	pop	%r9
 	pop	%r8
diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/mod_1_1.asm
--- a/mpn/x86_64/mod_1_1.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/mod_1_1.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -198,8 +198,10 @@
 	sal	R8(%rcx), %r12
 IFSTD(`	mov	%r12, %rdi	')	C pass parameter
 IFDOS(`	mov	%r12, %rcx	')	C pass parameter
+IFDOS(`	sub	$32, %rsp	')
 	ASSERT(nz, `test $15, %rsp')
 	CALL(	mpn_invert_limb)
+IFDOS(`	add	$32, %rsp	')
 	neg	%r12
 	mov	%r12, %r8
 	mov	%rax, (%rbx)		C store bi
diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/mod_1_2.asm
--- a/mpn/x86_64/mod_1_2.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/mod_1_2.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -183,8 +183,10 @@
 	sal	R8(%rcx), %r12		C b << cnt
 IFSTD(`	mov	%r12, %rdi	')	C pass parameter
 IFDOS(`	mov	%r12, %rcx	')	C pass parameter
+IFDOS(`	sub	$32, %rsp	')
 	ASSERT(nz, `test $15, %rsp')
 	CALL(	mpn_invert_limb)
+IFDOS(`	add	$32, %rsp	')
 	mov	%r12, %r8
 	mov	%rax, %r11
 	mov	%rax, (%rbx)		C store bi
diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/mod_1_4.asm
--- a/mpn/x86_64/mod_1_4.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/mod_1_4.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -190,8 +190,10 @@
 	sal	R8(%rcx), %r12		C b << cnt
 IFSTD(`	mov	%r12, %rdi	')	C pass parameter
 IFDOS(`	mov	%r12, %rcx	')	C pass parameter
+IFDOS(`	sub	$32, %rsp	')
 	ASSERT(nz, `test $15, %rsp')
 	CALL(	mpn_invert_limb)
+IFDOS(`	add	$32, %rsp	')
 	mov	%r12, %r8
 	mov	%rax, %r11
 	mov	%rax, (%rbx)		C store bi
diff -r daaf1eaf2767 -r 36b4b377a950 mpn/x86_64/mod_34lsub1.asm
--- a/mpn/x86_64/mod_34lsub1.asm	Sun Apr 23 21:39:07 2017 +0200
+++ b/mpn/x86_64/mod_34lsub1.asm	Tue Apr 25 22:23:51 2017 +0200
@@ -36,7 +36,7 @@
 C AMD K8,K9	 0.67	   0.583 is possible with zero-reg instead of $0, 4-way
 C AMD K10	 0.67	   this seems hard to beat
 C AMD bd1	 1
-C AMD bd2	 ?
+C AMD bd2	 1
 C AMD bd3	 ?
 C AMD bd4	 ?
 C AMD zen	 0.62


More information about the gmp-commit mailing list