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

mercurial at gmplib.org mercurial at gmplib.org
Fri May 3 11:50:15 CEST 2013


details:   /var/hg/gmp/rev/d1a745be7e10
changeset: 15791:d1a745be7e10
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri May 03 11:49:39 2013 +0200
description:
Invoke INITCY where it has effect.

details:   /var/hg/gmp/rev/7b28672f34d6
changeset: 15792:7b28672f34d6
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri May 03 11:49:59 2013 +0200
description:
ChangeLog

diffstat:

 ChangeLog                              |   3 +++
 mpn/sparc64/ultrasparct3/aorslsh_n.asm |  10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 3348495813e9 -r 7b28672f34d6 ChangeLog
--- a/ChangeLog	Fri May 03 02:22:26 2013 +0200
+++ b/ChangeLog	Fri May 03 11:49:59 2013 +0200
@@ -1,5 +1,8 @@
 2013-05-03  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/sparc64/ultrasparct3/aorslsh_n.asm: Invoke INITCY where it has
+	effect.
+
 	* gmp-impl.h: Amend last change.
 	* tests/devel/try.c (choice_array): Don't try to table addlsh1_n etc if
 	a macro.
diff -r 3348495813e9 -r 7b28672f34d6 mpn/sparc64/ultrasparct3/aorslsh_n.asm
--- a/mpn/sparc64/ultrasparct3/aorslsh_n.asm	Fri May 03 02:22:26 2013 +0200
+++ b/mpn/sparc64/ultrasparct3/aorslsh_n.asm	Fri May 03 11:49:59 2013 +0200
@@ -43,13 +43,13 @@
 
 ifdef(`OPERATION_addlsh_n',`
   define(`INITCY', `subcc	%g0, 0, %g0')
-  define(`MERGE', `or')
-  define(`func',  `mpn_addlsh_n')
+  define(`MERGE',  `or')
+  define(`func',   `mpn_addlsh_n')
 ')
 ifdef(`OPERATION_sublsh_n',`
   define(`INITCY', `subcc	%g0, 1, %g0')
   define(`MERGE',  `xnor')
-  define(`func',  `mpn_sublsh_n')
+  define(`func',   `mpn_sublsh_n')
 ')
 
 define(`rp0',  `rp')
@@ -65,7 +65,6 @@
 	REGISTER(%g3,#scratch)
 PROLOGUE(func)
 	save	%sp, -176, %sp
-	INITCY
 	mov	64, tnc
 	sub	tnc, cnt, tnc
 
@@ -79,8 +78,9 @@
 	add	vp0, 8, vp1
 	add	rp0, -8, rp1
 	add	rp0, -16, rp0
+	neg	n, n
 	be	L(evn)
-	 neg	n, n
+	 INITCY
 
 L(odd):	ldx	[vp0 + n], %l1
 	mov	0, %l2


More information about the gmp-commit mailing list