From 03a7091fa2afc84e215fc99fceca52baa4b0f8f1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 27 Mar 2014 18:41:14 +0000 Subject: Fix x86/x86_64 expl/exp10l spurious underflows (bug 16348). This patch fixes bug 16348, spurious underflows from x86/x86_64 expl on arguments close to 0. These implementations effectively use expm1 (on the fractional part of the argument) internally, so resulting in spurious underflows when the result is very close to 1. For arguments small enough that the round-to-nearest correct result is 1, this patch uses 1+x instead. These implementations are also used for exp10l and so the patch fixes similar issues there (the 0x1p-67 threshold being small enough to be correct for exp10l as well as expl). But because of spurious underflows in other exp10 implementations (bug 16560), the tests aren't added for exp10 at this point - they can be added when the other exp10 parts of that bug are fixed. Tested x86_64 and x86; no ulps updates needed. [BZ #16348] * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use 1+x for argument with exponent below -67. * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Likewise. * math/auto-libm-test-in: Add more tests of exp. * math/auto-libm-test-out: Regenerated. --- NEWS | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index afe4021337..a9cc5cb6ab 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, 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, 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.2.3