about summary refs log tree commit diff
path: root/sysdeps/x86_64
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/x86_64
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/x86_64')
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps44
1 files changed, 26 insertions, 18 deletions
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 0cb22a42fe..9fd710be24 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -1981,29 +1981,37 @@ ifloat: 1
 ildouble: 2
 ldouble: 2
 
+Function: "tanh":
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 2
+ldouble: 2
+
 Function: "tanh_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+double: 3
+float: 3
+idouble: 3
+ifloat: 3
+ildouble: 3
+ldouble: 3
 
 Function: "tanh_towardzero":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 3
+ldouble: 3
 
 Function: "tanh_upward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+double: 3
+float: 3
+idouble: 3
+ifloat: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tgamma":
 double: 4