[Gmp-commit] /var/hg/gmp-5.0: 3 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Sat Apr 30 11:45:44 CEST 2011
details: /var/hg/gmp-5.0/rev/90a11e4d502d
changeset: 13450:90a11e4d502d
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 11:41:46 2011 +0200
description:
(speed_cyclecounter): Always use PIC variant when compiled with Apple's GCC.
details: /var/hg/gmp-5.0/rev/7ad355ef3f9f
changeset: 13451:7ad355ef3f9f
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 11:45:11 2011 +0200
description:
Work around SysV m4 limitation.
details: /var/hg/gmp-5.0/rev/a9403b57e50d
changeset: 13452:a9403b57e50d
user: Torbjorn Granlund <tege at gmplib.org>
date: Sat Apr 30 11:45:32 2011 +0200
description:
*** empty log message ***
diffstat:
ChangeLog | 10 ++++++++++
mpn/x86/k7/gcd_1.asm | 2 +-
mpn/x86_64/gcd_1.asm | 2 +-
tune/speed.h | 2 +-
4 files changed, 13 insertions(+), 3 deletions(-)
diffs (60 lines):
diff -r a219dbc6448f -r a9403b57e50d ChangeLog
--- a/ChangeLog Mon Mar 28 14:29:20 2011 +0200
+++ b/ChangeLog Sat Apr 30 11:45:32 2011 +0200
@@ -1,3 +1,8 @@
+2011-04-27 Torbjorn Granlund <tege at gmplib.org>
+
+ * tune/speed.h (speed_cyclecounter): Always use PIC variant when
+ compiled with Apple's GCC.
+
2011-03-28 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86/invert_limb.asm: Protect movzwl register parameters from
@@ -25,6 +30,11 @@
* mpn/x86_64/aors_n.asm: Rewrite not to rely on ZF after 'bt' insn.
+2010-10-04 Torbjorn Granlund <tege at gmplib.org>
+
+ * mpn/x86_64/gcd_1.asm: Use m4_lshift to avoid << operator.
+ * mpn/x86/k7/gcd_1.asm: Likewise.
+
2010-05-14 Torbjorn Granlund <tege at gmplib.org>
* mpn/generic/redc_2.c: Use asm code just for GNU C.
diff -r a219dbc6448f -r a9403b57e50d mpn/x86/k7/gcd_1.asm
--- a/mpn/x86/k7/gcd_1.asm Mon Mar 28 14:29:20 2011 +0200
+++ b/mpn/x86/k7/gcd_1.asm Sat Apr 30 11:45:32 2011 +0200
@@ -45,7 +45,7 @@
C since TEXT is read-only there's no worries about coherency.
deflit(MAXSHIFT, 6)
-deflit(MASK, eval((1<<MAXSHIFT)-1))
+deflit(MASK, eval((m4_lshift(1,MAXSHIFT))-1))
TEXT
ALIGN(64)
diff -r a219dbc6448f -r a9403b57e50d mpn/x86_64/gcd_1.asm
--- a/mpn/x86_64/gcd_1.asm Mon Mar 28 14:29:20 2011 +0200
+++ b/mpn/x86_64/gcd_1.asm Sat Apr 30 11:45:32 2011 +0200
@@ -40,7 +40,7 @@
deflit(MAXSHIFT, 6)
-deflit(MASK, eval((1<<MAXSHIFT)-1))
+deflit(MASK, eval((m4_lshift(1,MAXSHIFT))-1))
DEF_OBJECT(ctz_table,64)
.byte MAXSHIFT
diff -r a219dbc6448f -r a9403b57e50d tune/speed.h
--- a/tune/speed.h Mon Mar 28 14:29:20 2011 +0200
+++ b/tune/speed.h Sat Apr 30 11:45:32 2011 +0200
@@ -363,7 +363,7 @@
is used without a -DPIC to tell us about it. */
#if defined(__GNUC__) && ! defined (NO_ASM) \
&& (defined (__i386__) || defined (__i486__))
-#ifdef PIC
+#if defined (PIC) || defined (__APPLE_CC__)
#define speed_cyclecounter(p) \
do { \
int __speed_cyclecounter__save_ebx; \
More information about the gmp-commit
mailing list