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

mercurial at gmplib.org mercurial at gmplib.org
Mon Jul 22 15:08:51 CEST 2013


details:   /var/hg/gmp/rev/221a3c6d87fd
changeset: 15878:221a3c6d87fd
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jul 22 15:07:17 2013 +0200
description:
Handle little-endian mode.

details:   /var/hg/gmp/rev/67a9fdd52e18
changeset: 15879:67a9fdd52e18
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Jul 22 15:08:25 2013 +0200
description:
ChangeLog

diffstat:

 ChangeLog                        |  11 +++++++++++
 mpn/powerpc64/mode64/mod_1_1.asm |   5 ++++-
 mpn/powerpc64/mode64/mod_1_4.asm |   5 ++++-
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 89a5c76228fd -r 67a9fdd52e18 ChangeLog
--- a/ChangeLog	Mon Jul 22 00:39:44 2013 +0200
+++ b/ChangeLog	Mon Jul 22 15:08:25 2013 +0200
@@ -1,5 +1,16 @@
+2013-07-22  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/powerpc64/mode64/mod_1_1.asm: Handle little-endian mode.
+	* mpn/powerpc64/mode64/mod_1_4.asm: Likewise.
+
+2013-07-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* doc/gmp.texi: Declare countless of function arguments as 'const'.
+
 2013-07-15  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/x86_64/core2/aors_n.asm: Rewrite.
+
 	* mpn/generic/sb_div_sec.c: Compute inverse as floor(B^2/(dh+1)), per
 	Niels' suggestion.
 	* mpn/generic/sbpi1_div_sec.c: Remove inverse rounding-up code.
diff -r 89a5c76228fd -r 67a9fdd52e18 mpn/powerpc64/mode64/mod_1_1.asm
--- a/mpn/powerpc64/mode64/mod_1_1.asm	Mon Jul 22 00:39:44 2013 +0200
+++ b/mpn/powerpc64/mode64/mod_1_1.asm	Mon Jul 22 15:08:25 2013 +0200
@@ -69,7 +69,10 @@
 	adde	r9, r9, r10
 	bdnz	L(top)
 
-L(end):	lwz	r0, 12(r6)
+L(end):
+ifdef(`HAVE_LIMB_LITTLE_ENDIAN',
+`	lwz	r0, 8(r6)',
+`	lwz	r0, 12(r6)')
 	ld	r3, 0(r6)
 	cmpdi	cr7, r0, 0
 	beq-	cr7, L(4)
diff -r 89a5c76228fd -r 67a9fdd52e18 mpn/powerpc64/mode64/mod_1_4.asm
--- a/mpn/powerpc64/mode64/mod_1_4.asm	Mon Jul 22 00:39:44 2013 +0200
+++ b/mpn/powerpc64/mode64/mod_1_4.asm	Mon Jul 22 15:08:25 2013 +0200
@@ -144,7 +144,10 @@
 	adde	r9, r7, r4
 	bdnz	L(top)
 
-L(end):	lwz	r3, 12(cps)
+L(end):
+ifdef(`HAVE_LIMB_LITTLE_ENDIAN',
+`	lwz	r3, 8(cps)',
+`	lwz	r3, 12(cps)')
 	mulld	r10, r9, r26
 	mulhdu	r9, r9, r26
 	addc	r11, r0, r10


More information about the gmp-commit mailing list