about summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-05-01 23:06:44 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-05-01 23:06:44 +0000
commit5ffb9a53d7d8dec873b272d162ba4f84452a3d03 (patch)
tree9d50fcae4f65e87ecce66563b4e8c85870f463e1 /sysdeps/i386
parent0957e15d0a58b389155750f6748f083196e06c31 (diff)
downloadglibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.tar.gz
glibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.tar.xz
glibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.zip
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.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/fpu/libm-test-ulps16
1 files changed, 10 insertions, 6 deletions
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