summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2016-12-13 19:20:31 +0100
committerTorbjorn Granlund <tg@gmplib.org>2016-12-13 19:20:31 +0100
commit8385e24f3553f19db377beca28f59fff8ce7db63 (patch)
tree7f653a3812876220133ff7ed5b159ae1b395d335 /longlong.h
parentedb8ea5a34a1942b52de3b52014eefa2476f6848 (diff)
downloadgmp-8385e24f3553f19db377beca28f59fff8ce7db63.tar.gz
Test LONGLONG_STANDALONE in two more places.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/longlong.h b/longlong.h
index b1d3f11dd..f2dbfc41c 100644
--- a/longlong.h
+++ b/longlong.h
@@ -506,6 +506,7 @@ long __MPN(count_leading_zeros) (UDItype);
: "r" ((USItype) (a)), "r" ((USItype) (b)) __CLOBBER_CC); \
} while (0)
#define UMUL_TIME 20
+#ifndef LONGLONG_STANDALONE
#define udiv_qrnnd(q, r, n1, n0, d) \
do { UWtype __r; \
(q) = __MPN(udiv_qrnnd) (&__r, (n1), (n0), (d)); \
@@ -513,6 +514,7 @@ long __MPN(count_leading_zeros) (UDItype);
} while (0)
extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
#define UDIV_TIME 200
+#endif /* LONGLONG_STANDALONE */
#else /* ARMv4 or newer */
#define umul_ppmm(xh, xl, a, b) \
__asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
@@ -2113,7 +2115,8 @@ extern __longlong_h_C UWtype mpn_udiv_qrnnd_r (UWtype, UWtype, UWtype, UWtype *)
/* If the processor has no udiv_qrnnd but sdiv_qrnnd, go through
__udiv_w_sdiv (defined in libgcc or elsewhere). */
-#if !defined (udiv_qrnnd) && defined (sdiv_qrnnd)
+#if !defined (udiv_qrnnd) && defined (sdiv_qrnnd) \
+ && ! defined (LONGLONG_STANDALONE)
#define udiv_qrnnd(q, r, nh, nl, d) \
do { \
UWtype __r; \