[Gmp-commit] /var/hg/gmp-5.0: Merge ppc longlong.h change from mainline repo.

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 22 11:16:17 CET 2012


details:   /var/hg/gmp-5.0/rev/6149c03d9f51
changeset: 13514:6149c03d9f51
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 22 11:16:14 2012 +0100
description:
Merge ppc longlong.h change from mainline repo.

diffstat:

 ChangeLog  |  4 ++++
 longlong.h |  2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 54e6aadbdd73 -r 6149c03d9f51 ChangeLog
--- a/ChangeLog	Sun Jan 22 10:31:33 2012 +0100
+++ b/ChangeLog	Sun Jan 22 11:16:14 2012 +0100
@@ -351,6 +351,10 @@
 
 	* mpn/generic/redc_2.c: Use asm code just for GNU C.
 
+2010-05-05  Torbjorn Granlund  <tege at gmplib.org>
+
+	* longlong.h: Undo 2009-03-01 change for powerpc64, it gives poor code.
+
 2010-04-10  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/x86/divrem_2.asm: Use "orb" instead of "or" to work around
diff -r 54e6aadbdd73 -r 6149c03d9f51 longlong.h
--- a/longlong.h	Sun Jan 22 10:31:33 2012 +0100
+++ b/longlong.h	Sun Jan 22 11:16:14 2012 +0100
@@ -1271,7 +1271,7 @@
 #define count_leading_zeros(count, x) \
   __asm__ ("cntlzd %0,%1" : "=r" (count) : "r" (x))
 #define COUNT_LEADING_ZEROS_0 64
-#if __GMP_GNUC_PREREQ (4,4)
+#if 0 && __GMP_GNUC_PREREQ (4,4) /* Disable, this results in libcalls! */
 #define umul_ppmm(w1, w0, u, v) \
   do {									\
     typedef unsigned int __ll_UTItype __attribute__((mode(TI)));	\


More information about the gmp-commit mailing list