From 289e0779571a36a8f30ae0408b4902bb7f2ab92e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 28 Mar 2014 20:53:32 +0000 Subject: Fix clog10 (-0 +/- 0i) (bug 16362). This patch fixes the imaginary part of clog10 (-0 +/- 0i), which should be +/-pi / log(10) by analogy with clog (the functions were wrongly returning a result with imaginary part +/-pi, same as for clog, and the tests matched the incorrect result, though both functions and tests were correct for the similar case of clog10 (-inf +/- 0i)). Tested x86_64 and x86. [BZ #16362] * math/s_clog10.c (M_PI_LOG10E): New macro. (__clog10): Use M_PI_LOG10E instead of M_PI when real and imaginary parts are 0. * math/s_clog10f.c (M_PI_LOG10Ef): New macro. (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and imaginary parts are 0. * math/s_clog10l.c (M_PI_LOG10El): New macro. (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and imaginary parts are 0. * math/libm-test.inc (clog10_test_data): Update expected results for when real and imaginary parts are 0. --- NEWS | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index a9cc5cb..b34c9fc 100644 --- a/NEWS +++ b/NEWS @@ -9,11 +9,11 @@ Version 2.20 * The following bugs are resolved with this release: - 15347, 15804, 15894, 16002, 16198, 16284, 16348, 16357, 16447, 16532, - 16545, 16574, 16599, 16600, 16609, 16610, 16611, 16613, 16623, 16632, - 16634, 16639, 16642, 16649, 16670, 16674, 16677, 16680, 16683, 16689, - 16695, 16701, 16706, 16707, 16712, 16713, 16714, 16731, 16743, 16758, - 16759, 16760. + 15347, 15804, 15894, 16002, 16198, 16284, 16348, 16357, 16362, 16447, + 16532, 16545, 16574, 16599, 16600, 16609, 16610, 16611, 16613, 16623, + 16632, 16634, 16639, 16642, 16649, 16670, 16674, 16677, 16680, 16683, + 16689, 16695, 16701, 16706, 16707, 16712, 16713, 16714, 16731, 16743, + 16758, 16759, 16760. * Running the testsuite no longer terminates as soon as a test fails. Instead, a file tests.sum (xtests.sum from "make xcheck") is generated, -- cgit v1.1