From 5ffb9a53d7d8dec873b272d162ba4f84452a3d03 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 1 May 2015 23:06:44 +0000 Subject: Add more tests of tanh. This patch adds some randomly-generated tests of tanh that are observed to increase ulps on x86_64. Tested for x86_64 and x86 and ulps updated accordingly. * math/auto-libm-test-in: Add more tests of tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. --- sysdeps/i386/fpu/libm-test-ulps | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'sysdeps/i386') diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index 2286c8817c..10e0ca6f3b 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -1829,25 +1829,29 @@ ifloat: 1 ildouble: 2 ldouble: 2 +Function: "tanh": +ildouble: 2 +ldouble: 2 + Function: "tanh_downward": double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 3 -ldouble: 1 +ildouble: 4 +ldouble: 3 Function: "tanh_towardzero": double: 1 float: 1 -ildouble: 2 -ldouble: 1 +ildouble: 3 +ldouble: 3 Function: "tanh_upward": double: 1 float: 1 -ildouble: 2 -ldouble: 1 +ildouble: 5 +ldouble: 4 Function: "tgamma": double: 4 -- cgit v1.2.3