From 4aa10d01b654b7395c6e856b8e1e0959cfc80739 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 29 Jun 2015 17:51:32 +0000 Subject: Fix ldbl-128 j1l spurious underflows (bug 18612). The ldbl-128 implementation of j1l produces spurious underflow exceptions for some small arguments, as a result of squaring the argument. This patch fixes it just to use a linear approximation for sufficiently small arguments, and then to force an underflow exception only in the cases where it is required. Tested for mips64. [BZ #18612] * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small arguments, just return 0.5 times the argument, with underflow forced as needed. * math/auto-libm-test-in: Add more tests of j1. * math/auto-libm-test-out: Regenerated. --- math/auto-libm-test-in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'math/auto-libm-test-in') diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index 34b02c91f7..f4313a2b99 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -1812,6 +1812,9 @@ j1 0x1.ff00000000002p+840 j1 0x1p1023 j1 0x1p16382 j1 0x1p16383 +j1 0x1p-100 +j1 0x1p-600 +j1 0x1p-10000 # Bug 18611: errno setting may be missing. j1 min missing-errno j1 -min missing-errno -- cgit v1.2.3-70-g09d2