diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-29 20:57:06 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-29 20:57:06 +0000 |
commit | 134ed3c71c7d6ae5b77838c7b853e354da7493b5 (patch) | |
tree | 698744f1790fbd9037f87aaf0a7c8fd32c0cc133 /src/get_d64.c | |
parent | 56db0917d63f025cf95ae7ff081c3c7c6b21a865 (diff) | |
download | mpfr-134ed3c71c7d6ae5b77838c7b853e354da7493b5.tar.gz |
get rid of dependency from GMP for _GMP_IEEE_FLOATS and ieee_double_extract
enable decimal float by default
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10150 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_d64.c')
-rw-r--r-- | src/get_d64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/get_d64.c b/src/get_d64.c index 07948a33b..1f9fae2c2 100644 --- a/src/get_d64.c +++ b/src/get_d64.c @@ -31,7 +31,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #ifdef MPFR_WANT_DECIMAL_FLOATS -#if _GMP_IEEE_FLOATS +#if _MPFR_IEEE_FLOATS #else #include "ieee_floats.h" #endif @@ -114,8 +114,8 @@ static const int T[1000] = { static _Decimal64 get_decimal64_nan (void) { -#if _GMP_IEEE_FLOATS - union ieee_double_extract x; +#if _MPFR_IEEE_FLOATS + union mpfr_ieee_double_extract x; union ieee_double_decimal64 y; x.s.exp = 1984; /* G[0]..G[4] = 11111: quiet NaN */ @@ -130,8 +130,8 @@ get_decimal64_nan (void) static _Decimal64 get_decimal64_inf (int negative) { -#if _GMP_IEEE_FLOATS - union ieee_double_extract x; +#if _MPFR_IEEE_FLOATS + union mpfr_ieee_double_extract x; union ieee_double_decimal64 y; x.s.sig = (negative) ? 1 : 0; @@ -176,7 +176,7 @@ get_decimal64_max (int negative) (b2) or -398 <= e <= 369 with m integer, |m| < 10^16. Assumes s is neither NaN nor +Inf nor -Inf. */ -#if _GMP_IEEE_FLOATS +#if _MPFR_IEEE_FLOATS static _Decimal64 string_to_Decimal64 (char *s) { @@ -184,7 +184,7 @@ string_to_Decimal64 (char *s) char m[17]; long n = 0; /* mantissa length */ char *endptr[1]; - union ieee_double_extract x; + union mpfr_ieee_double_extract x; union ieee_double_decimal64 y; #ifdef DPD_FORMAT unsigned int G, d1, d2, d3, d4, d5; |