about summary refs log tree commit diff
path: root/NEWS
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-06-27 14:52:13 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-06-27 14:52:13 +0000
commitbe25493251c014a696b62834b0e63b155d8fe353 (patch)
tree2a7ed0745694dfd02fb848ddc702a262acd31fe1 /NEWS
parentb351d85aa284f81271bc93e11301e1c2466b7c82 (diff)
downloadglibc-be25493251c014a696b62834b0e63b155d8fe353.tar.gz
glibc-be25493251c014a696b62834b0e63b155d8fe353.tar.xz
glibc-be25493251c014a696b62834b0e63b155d8fe353.zip
Fix yn overflow handling in non-default rounding modes (bug 16561, bug 16562).
This patch fixes bugs 16561 and 16562, bad results of yn in overflow
cases in non-default rounding modes, both because an intermediate
overflow in the recurrence does not get detected if the result is not
an infinity and because an overflowing result may occur in the wrong
sign.  The fix is to set FE_TONEAREST mode internally for the parts of
the function where such overflows can occur (which includes the call
to y1 - where yn is used to compute a Bessel function of order -1,
negating the result of y1 isn't correct for overflowing results in
directed rounding modes) and then compute an overflowing value in the
original rounding mode if the to-nearest result was an infinity.

Tested x86_64 and x86 and ulps updated accordingly.  Also tested for
mips64 and powerpc32 to test the ldbl-128 and ldbl-128ibm changes.

(The tests for these bugs were added in my previous y1 patch, so the
only thing this patch has to do with the testsuite is enable yn
testing in all rounding modes.)

	[BZ #16561]
	[BZ #16562]
	* sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
	(__ieee754_yn): Set FE_TONEAREST mode internally and then
	recompute overflowing results in original rounding mode.
	* sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
	(__ieee754_ynf): Set FE_TONEAREST mode internally and then
	recompute overflowing results in original rounding mode.
	* sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
	(__ieee754_ynl): Set FE_TONEAREST mode internally and then
	recompute overflowing results in original rounding mode.
	* sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
	(__ieee754_ynl): Set FE_TONEAREST mode internally and then
	recompute overflowing results in original rounding mode.
	* sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
	(__ieee754_ynl): Set FE_TONEAREST mode internally and then
	recompute overflowing results in original rounding mode.
	* sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
	(libc_feholdsetround_ctx): New macro.
	* math/libm-test.inc (yn_test): Use ALL_RM_TEST.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS20
1 files changed, 10 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index e854c251e7..7663f01c1a 100644
--- a/NEWS
+++ b/NEWS
@@ -12,16 +12,16 @@ 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, 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, 17086.
+  16545, 16561, 16562, 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, 17086.
 
 * Optimized strchr implementation for AArch64.  Contributed by ARM Ltd.