From 7ee06ef15827f8f2582a94b1ceaad47eaf502744 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 10 Aug 2015 20:35:30 +0000 Subject: Fix ldbl-128ibm tanhl inaccuracy (bug 18790). ldbl-128ibm tanhl uses a too-small threshold to decide when to return +/-1, resulting in large errors. This patch changes it to a more appropriate threshold (the requirement is for 2*exp(-2|x|) to be small in terms of ulps of 1). Tested for x86_64, x86 and powerpc. [BZ #18790] * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase threshold for returning +/- 1. * math/auto-libm-test-in: Add more tests of tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. --- sysdeps/i386/fpu/libm-test-ulps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/i386') diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index eddb3dc990..dbc8f2f331 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -1924,7 +1924,7 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 5 +ildouble: 7 ldouble: 4 Function: "tanh_towardzero": -- cgit 1.4.1