summaryrefslogtreecommitdiff
path: root/get_ld.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 /get_ld.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 'get_ld.c')
-rw-r--r--get_ld.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/get_ld.c b/get_ld.c
index e5837f667..0cca171ff 100644
--- a/get_ld.c
+++ b/get_ld.c
@@ -28,26 +28,6 @@ MA 02111-1307, USA. */
#include "mpfr.h"
#include "mpfr-impl.h"
-#ifndef LDBL_MANT_DIG
-#define LDBL_MANT_DIG 113 /* works also if long double == quad */
-#endif
-
-#ifndef DBL_MANT_DIG
-#define DBL_MANT_DIG 53
-#endif
-
-
-/* Various i386 systems have been seen with incorrect LDBL constants in
- float.h (notes in set_ld.c), so force the value we know is right for IEEE
- extended. */
-
-#if HAVE_LDOUBLE_IEEE_EXT_LITTLE
-#define MPFR_LDBL_MANT_DIG 64
-#else
-#define MPFR_LDBL_MANT_DIG LDBL_MANT_DIG
-#endif
-
-
long double
mpfr_get_ld (mpfr_srcptr x, mp_rnd_t rnd_mode)
{
@@ -91,7 +71,7 @@ mpfr_get_ld (mpfr_srcptr x, mp_rnd_t rnd_mode)
}
/* now -1021 <= e - sh = EXP(y) <= 1023 */
r = 0.0;
- mpfr_init2 (z, DBL_MANT_DIG);
+ mpfr_init2 (z, IEEE_DBL_MANT_DIG);
do
{