diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-04-02 13:10:19 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-04-02 13:10:19 +0000 |
commit | 6f05bafebac30a389807979f8efbb709f84b486f (patch) | |
tree | ecd76f4b39be7484aa2e5bfb1d18e164d66a0674 /NEWS | |
parent | b0abbc21034f0e5edc49023d8fda0616173faf17 (diff) | |
download | glibc-6f05bafebac30a389807979f8efbb709f84b486f.zip glibc-6f05bafebac30a389807979f8efbb709f84b486f.tar.gz glibc-6f05bafebac30a389807979f8efbb709f84b486f.tar.bz2 |
Fix clog / clog10 sign of zero result in round-downward mode (bug 16789).
This patch fixes bug 16789, incorrect sign of (real part) zero result
from clog and clog10 in round-downward mode, arising from that real
part being computed as 0 - 0. To ensure that an underflow exception
occurred, the code used an underflowing value (the next term in the
series for log1p) in arithmetic computing the real part of the result,
yielding the problematic 0 - 0 computation in some cases even when the
mathematical result would be small but positive. The patch changes
this code to use the math_force_eval approach to ensuring that an
underflowing computation actually occurs. Tests of clog and clog10
are enabled in all rounding modes.
Tested x86_64 and x86 and ulps updated accordingly.
[BZ #16789]
* math/s_clog.c (__clog): Use math_force_eval to ensure underflow
instead of using underflowing value in computing result.
* math/s_clog10.c (__clog10): Likewise.
* math/s_clog10f.c (__clog10f): Likewise.
* math/s_clog10l.c (__clog10l): Likewise.
* math/s_clogf.c (__clogf): Likewise.
* math/s_clogl.c (__clogl): Likewise.
* math/libm-test.inc (clog_test): Use ALL_RM_TEST.
(clog10_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,7 +13,8 @@ Version 2.20 16357, 16362, 16447, 16532, 16545, 16574, 16599, 16600, 16609, 16610, 16611, 16613, 16623, 16632, 16634, 16639, 16642, 16648, 16649, 16670, 16674, 16677, 16680, 16683, 16689, 16695, 16701, 16706, 16707, 16712, - 16713, 16714, 16731, 16739, 16743, 16758, 16759, 16760, 16770, 16786. + 16713, 16714, 16731, 16739, 16743, 16758, 16759, 16760, 16770, 16786, + 16789. * Running the testsuite no longer terminates as soon as a test fails. Instead, a file tests.sum (xtests.sum from "make xcheck") is generated, |