From 3fb4cfaf1f1e8d58312720c70d224e2050d469fc Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 17 Aug 2015 23:02:54 +0000 Subject: Fix csqrt spurious underflows (bug 18823). The csqrt functions scale up small arguments to avoid underflows when calling hypot functions. However, even when hypot does not underflow, a subsequent calculation of 0.5 * hypot can underflow. This patch duly increases the threshold and scale factor to avoid such underflows as well. Tested for x86_64, x86 and mips64. [BZ #18823] * math/s_csqrt.c (__csqrt): Increase threshold and scale factor for scaling up small arguments. * math/s_csqrtf.c (__csqrtf): Likewise. * math/s_csqrtl.c (__csqrtl): Likewise. * math/auto-libm-test-in: Add more tests of csqrt. * math/auto-libm-test-out: Regenerated. --- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 64230e2..bad2c22 100644 --- a/NEWS +++ b/NEWS @@ -11,7 +11,7 @@ Version 2.23 16517, 16519, 16520, 16734, 17905, 18084, 18086, 18265, 18480, 18525, 18618, 18647, 18661, 18681, 18674, 18778, 18781, 18787, 18789, 18790, - 18795, 18820, 18824. + 18795, 18820, 18823, 18824. * The obsolete header has been removed. Programs that require this header must be updated to use instead. -- cgit v1.1