summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-26 13:40:08 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-26 13:40:08 +0000
commit3bd252817f1048db139cc3e1a34e850f7b67abdd (patch)
tree4514fed625fe252e786378cddfac6d7405507e93 /set_d.c
parente81472a1d9c12d70c474f2fe93c5020e412ec993 (diff)
downloadmpfr-3bd252817f1048db139cc3e1a34e850f7b67abdd.tar.gz
moved macros for [L]DBL_MANT_DIG in mpfr-impl.h
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2373 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_d.c')
-rw-r--r--set_d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/set_d.c b/set_d.c
index 60b08413d..a98256d3c 100644
--- a/set_d.c
+++ b/set_d.c
@@ -197,7 +197,7 @@ mpfr_set_d (mpfr_ptr r, double d, mp_rnd_t rnd_mode)
since PREC(r) may be different from PREC(tmp), and then both variables
would have same precision in the mpfr_set4 call below. */
MPFR_MANT(tmp) = tmpmant;
- MPFR_PREC(tmp) = 53;
+ MPFR_PREC(tmp) = IEEE_DBL_MANT_DIG;
MPFR_SIZE(tmp) = MPFR_LIMBS_PER_DOUBLE;
signd = (d < 0) ? -1 : 1;