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

mercurial at gmplib.org mercurial at gmplib.org
Thu Dec 18 08:15:01 UTC 2014


details:   /var/hg/gmp/rev/efaf15596d26
changeset: 16538:efaf15596d26
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Thu Dec 18 09:14:22 2014 +0100
description:
(umul_ppmm): Use input temps in more places.

details:   /var/hg/gmp/rev/17d9306d0645
changeset: 16539:17d9306d0645
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Thu Dec 18 09:14:57 2014 +0100
description:
ChangeLog

diffstat:

 ChangeLog  |   4 ++++
 longlong.h |  18 +++++++++---------
 2 files changed, 13 insertions(+), 9 deletions(-)

diffs (80 lines):

diff -r 92f1faa00bfc -r 17d9306d0645 ChangeLog
--- a/ChangeLog	Wed Dec 10 22:25:56 2014 +0100
+++ b/ChangeLog	Thu Dec 18 09:14:57 2014 +0100
@@ -1,3 +1,7 @@
+2014-12-18  Torbjörn Granlund  <torbjorng at google.com>
+
+	* longlong.h (umul_ppmm): Use input temps in more places.
+
 2014-12-10  Marc Glisse  <marc.glisse at inria.fr>
 
 	* tests/cxx/clocale.c (localeconv, nl_langinfo): Match glibc's
diff -r 92f1faa00bfc -r 17d9306d0645 longlong.h
--- a/longlong.h	Wed Dec 10 22:25:56 2014 +0100
+++ b/longlong.h	Thu Dec 18 09:14:57 2014 +0100
@@ -1,6 +1,6 @@
 /* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
 
-Copyright 1991-1994, 1996, 1997, 1999-2005, 2007-2009, 2011-2013 Free Software
+Copyright 1991-1994, 1996, 1997, 1999-2005, 2007-2009, 2011-2014 Free Software
 Foundation, Inc.
 
 This file is part of the GNU MP Library.
@@ -200,7 +200,7 @@
     UDItype __m0 = (m0), __m1 = (m1);					\
     __asm__ ("umulh %r1,%2,%0"						\
 	     : "=r" (ph)						\
-	     : "%rJ" (m0), "rI" (m1));					\
+	     : "%rJ" (__m0), "rI" (__m1));				\
     (pl) = __m0 * __m1;							\
   } while (0)
 #endif
@@ -210,7 +210,7 @@
 #define umul_ppmm(ph, pl, m0, m1) \
   do {									\
     UDItype __m0 = (m0), __m1 = (m1);					\
-    (ph) = __UMULH (m0, m1);						\
+    (ph) = __UMULH (__m0, __m1);					\
     (pl) = __m0 * __m1;							\
   } while (0)
 #endif
@@ -293,7 +293,7 @@
 #define umul_ppmm(ph, pl, m0, m1) \
   do {									\
     UDItype __m0 = (m0), __m1 = (m1);					\
-    (ph) = _int_mult_upper (m0, m1);					\
+    (ph) = _int_mult_upper (__m0, __m1);				\
     (pl) = __m0 * __m1;							\
   } while (0)
 #ifndef LONGLONG_STANDALONE
@@ -358,9 +358,9 @@
 #include <ia64intrin.h>
 #define umul_ppmm(ph, pl, m0, m1)					\
   do {									\
-    UWtype _m0 = (m0), _m1 = (m1);					\
-    ph = _m64_xmahu (_m0, _m1, 0);					\
-    pl = _m0 * _m1;							\
+    UWtype __m0 = (m0), __m1 = (m1);					\
+    ph = _m64_xmahu (__m0, __m1, 0);					\
+    pl = __m0 * __m1;							\
   } while (0)
 #endif
 #ifndef LONGLONG_STANDALONE
@@ -1474,7 +1474,7 @@
 #define umul_ppmm(ph, pl, m0, m1) \
   do {									\
     UDItype __m0 = (m0), __m1 = (m1);					\
-    __asm__ ("mulhdu %0,%1,%2" : "=r" (ph) : "%r" (m0), "r" (m1));	\
+    __asm__ ("mulhdu %0,%1,%2" : "=r" (ph) : "%r" (__m0), "r" (__m1));	\
     (pl) = __m0 * __m1;							\
   } while (0)
 #endif
@@ -1482,7 +1482,7 @@
 #define smul_ppmm(ph, pl, m0, m1) \
   do {									\
     DItype __m0 = (m0), __m1 = (m1);					\
-    __asm__ ("mulhd %0,%1,%2" : "=r" (ph) : "%r" (m0), "r" (m1));	\
+    __asm__ ("mulhd %0,%1,%2" : "=r" (ph) : "%r" (__m0), "r" (__m1));	\
     (pl) = __m0 * __m1;							\
   } while (0)
 #define SMUL_TIME 14  /* ??? */


More information about the gmp-commit mailing list