summaryrefslogtreecommitdiff
path: root/mpfr-gmp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-01-12 09:57:57 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-01-12 09:57:57 +0000
commitc60044e5aa692b0c87186b0ecaadc0b0ac6e9d64 (patch)
treec3e75ccd81bbfd5384a4c19729f0481196454643 /mpfr-gmp.c
parent1fa4c6cc187c20157a43cbb573ef4f934111dcbb (diff)
downloadmpfr-c60044e5aa692b0c87186b0ecaadc0b0ac6e9d64.tar.gz
Fix problem of `mpn_sub_nc' which may or may not be defined in libgmp.a
(Add a test in the configure and a new macro MPFR_HAVE_MPN_SUB_NC) Add MPFR_LOG2_BIT_PER_MP_LIMB macro git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3181 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-gmp.c')
-rw-r--r--mpfr-gmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpfr-gmp.c b/mpfr-gmp.c
index cd39fd18a..c2132599d 100644
--- a/mpfr-gmp.c
+++ b/mpfr-gmp.c
@@ -372,6 +372,9 @@ mpfr_default_free (void *blk_ptr, size_t blk_size)
free (blk_ptr);
}
+#endif /* Have gmp-impl.h */
+
+#ifndef MPFR_HAVE_MPN_SUB_NC
mp_limb_t
mpfr_sub_nc (mp_ptr dest, mp_srcptr op1, mp_srcptr op2, mp_size_t s,
mp_limb_t c)
@@ -383,5 +386,5 @@ mpfr_sub_nc (mp_ptr dest, mp_srcptr op1, mp_srcptr op2, mp_size_t s,
return c2;
}
-#endif /* Have gmp-impl.h */
+#endif /* !Have MPFR_HAVE_MPN_SUB_NC */