Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3 Use C version of umul_ppmm for Clang on MIPS.
details: https://anonhg.NetBSD.org/src/rev/8ae09425b785
branches: trunk
changeset: 328067:8ae09425b785
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Mar 25 15:28:15 2014 +0000
description:
Use C version of umul_ppmm for Clang on MIPS.
diffstat:
external/lgpl3/gmp/dist/longlong.h | 6 +++---
external/lgpl3/mpfr/dist/src/mpfr-longlong.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r dee8c9bca5df -r 8ae09425b785 external/lgpl3/gmp/dist/longlong.h
--- a/external/lgpl3/gmp/dist/longlong.h Tue Mar 25 13:38:25 2014 +0000
+++ b/external/lgpl3/gmp/dist/longlong.h Tue Mar 25 15:28:15 2014 +0000
@@ -1209,7 +1209,7 @@
#endif /* __m88000__ */
#if defined (__mips) && W_TYPE_SIZE == 32
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype __ll = (UDItype)(u) * (v); \
@@ -1231,7 +1231,7 @@
#endif /* __mips */
#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \
@@ -1347,7 +1347,7 @@
__asm__ ("cntlzw %0,%1" : "=r" (count) : "r" (x))
#define COUNT_LEADING_ZEROS_0 32
#if HAVE_HOST_CPU_FAMILY_powerpc
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype __ll = (UDItype)(u) * (v); \
diff -r dee8c9bca5df -r 8ae09425b785 external/lgpl3/mpfr/dist/src/mpfr-longlong.h
--- a/external/lgpl3/mpfr/dist/src/mpfr-longlong.h Tue Mar 25 13:38:25 2014 +0000
+++ b/external/lgpl3/mpfr/dist/src/mpfr-longlong.h Tue Mar 25 15:28:15 2014 +0000
@@ -1022,7 +1022,7 @@
#endif /* __m88000__ */
#if defined (__mips) && W_TYPE_SIZE == 32
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype __ll = (UDItype)(u) * (v); \
@@ -1044,7 +1044,7 @@
#endif /* __mips */
#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \
@@ -1160,7 +1160,7 @@
__asm__ ("{cntlz|cntlzw} %0,%1" : "=r" (count) : "r" (x))
#define COUNT_LEADING_ZEROS_0 32
#if HAVE_HOST_CPU_FAMILY_powerpc
-#if __GMP_GNUC_PREREQ (4,4)
+#if __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype __ll = (UDItype)(u) * (v); \
@@ -1259,7 +1259,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 __GMP_GNUC_PREREQ (4,4) || defined(__clang__)
#define umul_ppmm(w1, w0, u, v) \
do { \
typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \
Home |
Main Index |
Thread Index |
Old Index