aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
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
parent0957e15d0a58b389155750f6748f083196e06c31 (diff)
downloadglibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.tar
glibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.tar.gz
glibc-5ffb9a53d7d8dec873b272d162ba4f84452a3d03.tar.bz2
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')
-rw-r--r--sysdeps/i386/fpu/libm-test-ulps16
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps44
2 files changed, 36 insertions, 24 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
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