diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-06-22 21:41:53 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-06-22 21:41:53 +0000 |
commit | 47ff9c73b2792088477f6eadad9e5404f5589b33 (patch) | |
tree | 6107bed135a458d4676b65063f7def88405e768b /src/set_d128.c | |
parent | 28561476c1801ebf075ca721ac9e6fb4029091df (diff) | |
download | mpfr-47ff9c73b2792088477f6eadad9e5404f5589b33.tar.gz |
Do not assume that the bit-field ordering for _Decimal128 is necessarily
little endian or big endian (this is more than the usual endianness
issue). If this cannot be detected, instead of failing or assuming a
possibly wrong default, switch to the portable code.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12847 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/set_d128.c')
-rw-r--r-- | src/set_d128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set_d128.c b/src/set_d128.c index b07508a20..3b5837408 100644 --- a/src/set_d128.c +++ b/src/set_d128.c @@ -102,7 +102,7 @@ static unsigned int T[1024] = { 774, 775, 776, 777, 778, 779, 796, 797, 976, 977, 998, 999 }; #endif -#if _MPFR_IEEE_FLOATS && (GMP_NUMB_BITS == 32 || GMP_NUMB_BITS == 64) +#if HAVE_DECIMAL128_IEEE && (GMP_NUMB_BITS == 32 || GMP_NUMB_BITS == 64) /* Convert d to a decimal string (one-to-one correspondence, no rounding). The string s needs to have at least 44 characters (including the final \0): * 1 for the sign '-' |