summaryrefslogtreecommitdiff
path: root/src/get_ld.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-09-09 09:02:16 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-09-09 09:02:16 +0000
commit9f0c89a304d54f7586f3bf2d7580889483bdfa4b (patch)
treecd31cea20c98619a247c801b1dd343d7282c34f9 /src/get_ld.c
parent2519306c5da40ad579f9c5685c48b31b21caf62c (diff)
downloadmpfr-9f0c89a304d54f7586f3bf2d7580889483bdfa4b.tar.gz
[src/get_ld.c] Replaced FIXME by an explanation of the current behavior.
[tests/tset_ld.c] Added a FIXME as a consequence. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10833 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_ld.c')
-rw-r--r--src/get_ld.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/get_ld.c b/src/get_ld.c
index 978486ed6..cff0453d9 100644
--- a/src/get_ld.c
+++ b/src/get_ld.c
@@ -36,11 +36,11 @@ mpfr_get_ld (mpfr_srcptr x, mpfr_rnd_t rnd_mode)
#elif defined(HAVE_LDOUBLE_IEEE_EXT_LITTLE)
-/* FIXME: This code assumes that a 64-bit precision is available while
- the processor may be configured to round on 53 bits or less. This
- yields a failure in tset_ld on NetBSD 5.1 (the test is correct).
- Warning! This also has an effect on subnormals: the last 11 bits
- must still be 0. */
+/* Note: The code will return a result with a 64-bit precision, even
+ if the rounding precision is only 53 bits like on FreeBSD and
+ NetBSD 6- (or with GCC's -mpc64 option to simulate this on other
+ platforms). This is consistent with how strtold behaves in these
+ cases, for instance. */
/* special code for IEEE 754 little-endian extended format */
long double