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

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 20 23:48:07 UTC 2020


details:   /var/hg/gmp/rev/9c81b2830506
changeset: 18184:9c81b2830506
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Dec 21 00:45:32 2020 +0100
description:
Add a copyright year.

details:   /var/hg/gmp/rev/dd94d04af8af
changeset: 18185:dd94d04af8af
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Dec 21 00:47:42 2020 +0100
description:
Provide addmul_1c entry point.

details:   /var/hg/gmp/rev/925753a1f950
changeset: 18186:925753a1f950
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Dec 21 00:48:03 2020 +0100
description:
ChangeLog

diffstat:

 ChangeLog                       |  18 ++++++++++++++++++
 mpn/arm64/applem1/aorsmul_1.asm |  16 ++++++++++++----
 mpn/arm64/copyd.asm             |   2 +-
 mpn/arm64/copyi.asm             |   2 +-
 4 files changed, 32 insertions(+), 6 deletions(-)

diffs (98 lines):

diff -r e5f487a21419 -r 925753a1f950 ChangeLog
--- a/ChangeLog	Sun Dec 20 02:36:18 2020 +0100
+++ b/ChangeLog	Mon Dec 21 00:48:03 2020 +0100
@@ -1,7 +1,25 @@
+2020-12-21  Torbjörn Granlund  <tg at gmplib.org>
+
+	* mpn/arm64/applem1/aorsmul_1.asm: Provide addmul_1c entry point.
+
+2020-12-20  Torbjörn Granlund  <tg at gmplib.org>
+
+	* mpn/arm64/copyi.asm: Rewrite to use scalar regs.
+	* mpn/arm64/copyd.asm: Likewise.
+
 2020-12-12  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmp-h.in (_GMP_H_HAVE_FILE): Test also _STDIO (for HPE NonStop).
 
+2020-12-04  Torbjörn Granlund  <tg at gmplib.org>
+
+	* mpn/arm64/applem1/gmp-mparam.h: New file.
+
+	* mpn/generic/mod_1_1.c: Provide add_mssaaaa for arm64.
+	* mpn/generic/div_qr_1n_pi1.c: Likewise.
+
+	* mpn/arm64/divrem_1.asm: Use sub insn for subtracting constants.
+
 2020-11-29  Torbjörn Granlund  <tg at gmplib.org>
 
 	* mpn/arm64/divrem_1.asm: New file.
diff -r e5f487a21419 -r 925753a1f950 mpn/arm64/applem1/aorsmul_1.asm
--- a/mpn/arm64/applem1/aorsmul_1.asm	Sun Dec 20 02:36:18 2020 +0100
+++ b/mpn/arm64/applem1/aorsmul_1.asm	Mon Dec 21 00:48:03 2020 +0100
@@ -1,4 +1,4 @@
-dnl  ARM64 mpn_addmmul_1 and mpn_submul_1.
+dnl  ARM64 mpn_addmul_1 and mpn_submul_1.
 
 dnl  Contributed to the GNU project by Torbjörn Granlund.
 
@@ -47,6 +47,7 @@
 define(`up', x1)
 define(`n',  x2)
 define(`v0', x3)
+define(`cin',`x4')
 
 define(`CY',x17)
 
@@ -61,11 +62,18 @@
   define(`COND',	`cs')
   define(`func',	mpn_submul_1)')
 
-MULFUNC_PROLOGUE(mpn_addmul_1 mpn_submul_1)
+MULFUNC_PROLOGUE(mpn_addmul_1 mpn_submul_1 mpn_addmul_1c)
+
+ifdef(`OPERATION_addmul_1', `
+PROLOGUE(mpn_addmul_1c)
+	mov	CY, cin
+	b	L(ent)
+EPILOGUE()
+')
 
 PROLOGUE(func)
 	mov	CY, #0		C W0
-	lsr	x16, n, #2
+L(ent):	lsr	x16, n, #2
 	tbz	n, #0, L(bx0)
 
 L(bx1):	ldr	x4, [up], #8
@@ -98,7 +106,7 @@
 	ADDSUB	x8, x12, x8
 	csinc	x4, x4, x4, COND
 	ADDSUB	x8, x8, CY
-	csinc	CY, x4, x5, COND
+	csinc	CY, x4, x4, COND
 	str	x8, [rp], #8
 	cbnz	x16, L(top)
 	mov	x0, CY
diff -r e5f487a21419 -r 925753a1f950 mpn/arm64/copyd.asm
--- a/mpn/arm64/copyd.asm	Sun Dec 20 02:36:18 2020 +0100
+++ b/mpn/arm64/copyd.asm	Mon Dec 21 00:48:03 2020 +0100
@@ -1,6 +1,6 @@
 dnl  ARM64 mpn_copyd.
 
-dnl  Copyright 2013 Free Software Foundation, Inc.
+dnl  Copyright 2013, 2020 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 dnl
diff -r e5f487a21419 -r 925753a1f950 mpn/arm64/copyi.asm
--- a/mpn/arm64/copyi.asm	Sun Dec 20 02:36:18 2020 +0100
+++ b/mpn/arm64/copyi.asm	Mon Dec 21 00:48:03 2020 +0100
@@ -1,6 +1,6 @@
 dnl  ARM64 mpn_copyi.
 
-dnl  Copyright 2013 Free Software Foundation, Inc.
+dnl  Copyright 2013, 2020 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 dnl


More information about the gmp-commit mailing list