summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-18 09:02:00 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-18 09:02:00 +0000
commit9c94b291ca1c5929ce7ca2927f7506045278cdc0 (patch)
treecb2b32a4711bcfd793f8a30fc60de441bc47ee6c /set_d.c
parent177371d41c4d432af5863e7c053d3e6439e6283d (diff)
downloadmpfr-9c94b291ca1c5929ce7ca2927f7506045278cdc0.tar.gz
changed name of mpfr struct fields: _mp_d -> _mpfr_d
(to detect conflicts with mpf) fixed a few problems in non-STDC headers moved definitions of mpfr-impl.h to mpfr-test.h and created a real mpfr-impl.h git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@897 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_d.c')
-rw-r--r--set_d.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/set_d.c b/set_d.c
index 19d356d32..e7d1c325b 100644
--- a/set_d.c
+++ b/set_d.c
@@ -21,10 +21,19 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "gmp.h"
-#include "gmp-mparam.h"
-#include "mpfr.h"
#include "gmp-impl.h"
#include "longlong.h"
+#include "mpfr.h"
+#include "mpfr-impl.h"
+
+#if (BITS_PER_MP_LIMB==32)
+#define MPFR_LIMBS_PER_DOUBLE 2
+#elif (BITS_PER_MP_LIMB==64)
+#define MPFR_LIMBS_PER_DOUBLE 1
+#endif
+
+int __mpfr_extract_double (mp_ptr, double, int);
+double __mpfr_scale2 (double, int);
#define NaN (0./0.) /* ensures a machine-independent NaN */
#define Infp (1/0.)