diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-03-09 09:28:47 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-03-09 09:28:47 +0000 |
commit | bb4daca7b5c068ed0c236ac021fb4ccede94d320 (patch) | |
tree | cf4991242c8bb473450fc7e2560d2143aae17f30 /tests/tstrtofr.c | |
parent | e0f506dd17c1bb14707ad2c1c07c7ae0a261bebf (diff) | |
download | mpfr-bb4daca7b5c068ed0c236ac021fb4ccede94d320.tar.gz |
[tests/tstrtofr.c] Added comments about bug20161217 and bug20170308.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11386 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tstrtofr.c')
-rw-r--r-- | tests/tstrtofr.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/tstrtofr.c b/tests/tstrtofr.c index 6826b0e7a..c79f47c01 100644 --- a/tests/tstrtofr.c +++ b/tests/tstrtofr.c @@ -1189,12 +1189,17 @@ bug20120829 (void) mpfr_clears (e, x1, x2, (mpfr_ptr) 0); } -/* Note: the number is 5^47/2^9. */ +/* https://sympa.inria.fr/sympa/arc/mpfr/2016-12/msg00043.html + mpfr_strtofr can return an incorrect ternary value. + Note: As a consequence, the value can also be incorrect in + a reduced exponent range (since the ternary value is used + to resolve double rounding in mpfr_check_range). */ static void bug20161217 (void) { mpfr_t fp, z; static const char * num = "0.1387778780781445675529539585113525390625e31"; + /* The above number is 5^47/2^9. */ int inex; mpfr_init2 (fp, 110); @@ -1209,7 +1214,7 @@ bug20161217 (void) /* check bug in MPFR 3.1.5 is fixed: cf https://sympa.inria.fr/sympa/arc/mpfr/2017-03/msg00009.html - Note: same bug as bug20161217. */ + Note: same bug as bug20161217. See also the comments of bug20161217. */ static void bug20170308 (void) { |