From 9f0c89a304d54f7586f3bf2d7580889483bdfa4b Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 9 Sep 2016 09:02:16 +0000 Subject: [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 --- src/get_ld.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/get_ld.c') 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 -- cgit v1.2.1