From 4060283decf711ed95a6c4993ffeaba39f8cd40a Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 24 Jun 2014 21:00:08 +0000 Subject: Fix x86/x86_64 expm1l spurious underflow exceptions (bug 16539). This patch fixes bug 16539, spurious underflow exceptions from x86 / x86-64 expm1l. The problem is that the computation of a base-2 exponent with extra precision involves spurious underflows for arguments that are small but not subnormal, so a check is added to just return the argument in those cases. (If the argument *is* subnormal, underflowing is correct and the existing code will always underflow, so it suffices to keep using the existing code in that case; some expm1 implementations have a bug (bug 16353) with missing underflow exceptions, but I don't think there's such a bug in this particular version.) Tested x86_64 and x86; no ulps updates needed. (auto-libm-test-out diffs omitted below.) [BZ #16539] * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just return the argument for normal arguments with exponent below -64. * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Likewise. * math/auto-libm-test-in: Add another test of expm1. * math/auto-libm-test-out: Regenerated. --- NEWS | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e365acd915..66e363e384 100644 --- a/NEWS +++ b/NEWS @@ -11,17 +11,17 @@ Version 2.20 6804, 9894, 12994, 13347, 13651, 14308, 14770, 15119, 15132, 15347, 15514, 15698, 15804, 15894, 15946, 16002, 16064, 16095, 16198, 16284, 16287, - 16315, 16348, 16349, 16354, 16357, 16362, 16447, 16516, 16532, 16545, - 16564, 16574, 16599, 16600, 16609, 16610, 16611, 16613, 16619, 16623, - 16629, 16632, 16634, 16639, 16642, 16648, 16649, 16670, 16674, 16677, - 16680, 16681, 16683, 16689, 16695, 16701, 16706, 16707, 16712, 16713, - 16714, 16724, 16731, 16739, 16740, 16743, 16754, 16758, 16759, 16760, - 16770, 16786, 16789, 16791, 16796, 16799, 16800, 16815, 16823, 16824, - 16831, 16838, 16849, 16854, 16876, 16877, 16878, 16882, 16885, 16888, - 16890, 16912, 16915, 16916, 16917, 16918, 16922, 16927, 16928, 16932, - 16943, 16958, 16965, 16966, 16967, 16977, 16978, 16984, 16990, 16996, - 17009, 17022, 17031, 17042, 17048, 17050, 17058, 17061, 17062, 17069, - 17075, 17079, 17084. + 16315, 16348, 16349, 16354, 16357, 16362, 16447, 16516, 16532, 16539, + 16545, 16564, 16574, 16599, 16600, 16609, 16610, 16611, 16613, 16619, + 16623, 16629, 16632, 16634, 16639, 16642, 16648, 16649, 16670, 16674, + 16677, 16680, 16681, 16683, 16689, 16695, 16701, 16706, 16707, 16712, + 16713, 16714, 16724, 16731, 16739, 16740, 16743, 16754, 16758, 16759, + 16760, 16770, 16786, 16789, 16791, 16796, 16799, 16800, 16815, 16823, + 16824, 16831, 16838, 16849, 16854, 16876, 16877, 16878, 16882, 16885, + 16888, 16890, 16912, 16915, 16916, 16917, 16918, 16922, 16927, 16928, + 16932, 16943, 16958, 16965, 16966, 16967, 16977, 16978, 16984, 16990, + 16996, 17009, 17022, 17031, 17042, 17048, 17050, 17058, 17061, 17062, + 17069, 17075, 17079, 17084. * Optimized strchr implementation for AArch64. Contributed by ARM Ltd. -- cgit v1.2.3