[Gmp-commit] /var/hg/gmp: Provide __clz_tab even with sparc64 vis3.

mercurial at gmplib.org mercurial at gmplib.org
Mon Dec 8 19:20:03 UTC 2014


details:   /var/hg/gmp/rev/60d1caaee672
changeset: 16533:60d1caaee672
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Mon Dec 08 20:19:37 2014 +0100
description:
Provide __clz_tab even with sparc64 vis3.

diffstat:

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

diffs (25 lines):

diff -r 4c8706d8a0c3 -r 60d1caaee672 ChangeLog
--- a/ChangeLog	Mon Dec 08 19:38:11 2014 +0100
+++ b/ChangeLog	Mon Dec 08 20:19:37 2014 +0100
@@ -4,6 +4,9 @@
 	* config.sub (ultrasparc*-*-*): Update for T5.
 	* configure.ac (ultrasparc*-*-*): Update for T5.
 
+	* longlong.h (sparc64): Define COUNT_LEADING_ZEROS_NEED_CLZ_TAB
+	with VIS3.
+
 2014-12-02  Torbjörn Granlund  <torbjorng at google.com>
 
 	* config.guess (arm*-*-*): Redirect stderr.
diff -r 4c8706d8a0c3 -r 60d1caaee672 longlong.h
--- a/longlong.h	Mon Dec 08 19:38:11 2014 +0100
+++ b/longlong.h	Mon Dec 08 20:19:37 2014 +0100
@@ -1790,6 +1790,8 @@
   } while (0)
 #define count_leading_zeros(count, x) \
   __asm__ ("lzd\t%1,%0" : "=r" (count) : "r" (x))
+/* Needed by count_leading_zeros_32 in sparc64.h.  */
+#define COUNT_LEADING_ZEROS_NEED_CLZ_TAB
 #endif
 #endif
 


More information about the gmp-commit mailing list