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

mercurial at gmplib.org mercurial at gmplib.org
Sat Feb 16 18:16:17 CET 2013


details:   /var/hg/gmp/rev/f43533b76282
changeset: 15443:f43533b76282
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Feb 16 17:07:06 2013 +0100
description:
(PROTECT): Emit '.hidden' instead of '.protected" to please Sun's assembler, but also for semantic reasons.

details:   /var/hg/gmp/rev/0d45baccc8ca
changeset: 15444:0d45baccc8ca
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Feb 16 17:07:19 2013 +0100
description:
ChangeLog

details:   /var/hg/gmp/rev/d6a828f1505e
changeset: 15445:d6a828f1505e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Feb 16 18:16:04 2013 +0100
description:
Make it actually work for mpn_sub_n.

diffstat:

 ChangeLog                 |  5 +++++
 mpn/arm64/aors_n.asm      |  6 +++---
 mpn/x86_64/x86_64-defs.m4 |  6 +++---
 3 files changed, 11 insertions(+), 6 deletions(-)

diffs (61 lines):

diff -r a93ba1564436 -r d6a828f1505e ChangeLog
--- a/ChangeLog	Fri Feb 15 16:59:27 2013 +0100
+++ b/ChangeLog	Sat Feb 16 18:16:04 2013 +0100
@@ -1,3 +1,8 @@
+2013-02-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/x86_64/x86_64-defs.m4 (PROTECT): Emit '.hidden' instead of
+	'.protected" to please Sun's assembler, but also for semantic reasons.
+
 2013-02-15  Torbjorn Granlund  <tege at gmplib.org>
 
 	* configure.ac (arm64*-*-*): Match this.
diff -r a93ba1564436 -r d6a828f1505e mpn/arm64/aors_n.asm
--- a/mpn/arm64/aors_n.asm	Fri Feb 15 16:59:27 2013 +0100
+++ b/mpn/arm64/aors_n.asm	Sat Feb 16 18:16:04 2013 +0100
@@ -42,7 +42,7 @@
   define(`ADDSUB',	subs)
   define(`ADDSUBC',	sbcs)
   define(`CLRCY',	`cmp	xzr, xzr')
-  define(`SETCY',	`rsbs	$1, $1, xzr')
+  define(`SETCY',	`subs	$1, xzr, $1')
   define(`RETVAL',	`sbc	x0, xzr, xzr
 			and	x0, x0, #1')
   define(`func',	mpn_sub_n)
@@ -65,11 +65,11 @@
 
 L(top):	ldr	x6, [x1,x3]
 	ldr	x5, [x2,x3]
-	adcs	x7, x6, x5
+	ADDSUBC	x7, x6, x5
 	str	x7, [x0,x3]
 	add	x3, x3, #8
 	cbnz	x3, L(top)
 
-	adc	x0, xzr, xzr
+	RETVAL
 	ret
 EPILOGUE()
diff -r a93ba1564436 -r d6a828f1505e mpn/x86_64/x86_64-defs.m4
--- a/mpn/x86_64/x86_64-defs.m4	Fri Feb 15 16:59:27 2013 +0100
+++ b/mpn/x86_64/x86_64-defs.m4	Sat Feb 16 18:16:04 2013 +0100
@@ -2,8 +2,8 @@
 
 dnl  m4 macros for amd64 assembler.
 
-dnl  Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2011, 2012
-dnl  Free Software Foundation, Inc.
+dnl  Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2011,
+dnl  2012, 2013 Free Software Foundation, Inc.
 dnl
 dnl  This file is part of the GNU MP Library.
 dnl
@@ -218,7 +218,7 @@
 dnl  This can save reloc entries and improve shlib sharing as well as
 dnl  application startup times
 
-define(`PROTECT',  `.protected $1')
+define(`PROTECT',  `.hidden $1')
 
 
 dnl  Usage: x86_lookup(target, key,value, key,value, ...)


More information about the gmp-commit mailing list