summaryrefslogtreecommitdiff
path: root/gmp.h
diff options
context:
space:
mode:
authortege <tege@gmplib.org>1999-12-14 01:49:44 +0100
committertege <tege@gmplib.org>1999-12-14 01:49:44 +0100
commitcd31df9aedc3efd535141f097cc6a2c3da2aa9ba (patch)
tree081b6ca740ccc53a8706d5c52603394d0395695b /gmp.h
parent8c4d50301f4ac60db04e58c6b70c479c12bc40e8 (diff)
downloadgmp-cd31df9aedc3efd535141f097cc6a2c3da2aa9ba.tar.gz
(mpn_divrem): Inhibit for non-gcc.
Diffstat (limited to 'gmp.h')
-rw-r--r--gmp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gmp.h b/gmp.h
index 5df05e196..1dc9fd5c5 100644
--- a/gmp.h
+++ b/gmp.h
@@ -881,6 +881,7 @@ mpn_sub (res_ptr, s1_ptr, s1_size, s2_ptr, s2_size)
}
#endif /* __GNUC__ */
+#if defined (__GNUC__) || defined (_FORCE_INLINES)
_EXTERN_INLINE mp_limb_t
#if (__STDC__-0) || defined (__cplusplus)
mpn_divrem (mp_ptr _gmp_qp, mp_size_t _gmp_qn,
@@ -926,6 +927,7 @@ mpn_divrem (_gmp_qp, _gmp_qn, _gmp_np, _gmp_nn, _gmp_dp, _gmp_dn)
/* In the remaining cases, use classic division. */
return mpn_divrem_classic (_gmp_qp, _gmp_qn, _gmp_np, _gmp_nn, _gmp_dp, _gmp_dn);
}
+#endif
/* Allow faster testing for negative, zero, and positive. */
#define mpz_sgn(Z) ((Z)->_mp_size < 0 ? -1 : (Z)->_mp_size > 0)