about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-03-24 23:48:04 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-03-24 23:48:04 +0000
commit239ed6f309d835c35c95ea0c492cbe15aa4cc7bf (patch)
tree51ca5aefd5980995254ae49d2fbef04bcf490a33 /sysdeps
parenta737e8263a47acacdc70407729c4808c2873fdec (diff)
downloadglibc-239ed6f309d835c35c95ea0c492cbe15aa4cc7bf.tar.gz
glibc-239ed6f309d835c35c95ea0c492cbe15aa4cc7bf.tar.xz
glibc-239ed6f309d835c35c95ea0c492cbe15aa4cc7bf.zip
Add more tests of cosh, sinh.
This patch adds some randomly-generated tests of cosh and sinh 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 cosh and sinh.
	* 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-ulps13
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps36
2 files changed, 31 insertions, 18 deletions
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 253c3e6126..a418998625 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -1709,20 +1709,21 @@ ldouble: 2
 
 Function: "sinh":
 ildouble: 1
+ldouble: 1
 
 Function: "sinh_downward":
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 4
 
 Function: "sinh_towardzero":
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 3
 
 Function: "sinh_upward":
 double: 1
 float: 1
-ildouble: 1
-ldouble: 1
+ildouble: 4
+ldouble: 4
 
 Function: "tan":
 float: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 0c3943bfab..56752ca49c 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -940,7 +940,7 @@ double: 1
 float: 2
 idouble: 1
 ifloat: 2
-ildouble: 1
+ildouble: 2
 ldouble: 3
 
 Function: Real part of "cpow":
@@ -1821,25 +1821,37 @@ idouble: 1
 ildouble: 2
 ldouble: 2
 
-Function: "sinh_downward":
+Function: "sinh":
 double: 1
+float: 1
 idouble: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
+Function: "sinh_downward":
+double: 2
+float: 3
+idouble: 2
+ifloat: 3
+ildouble: 4
+ldouble: 4
+
 Function: "sinh_towardzero":
-double: 1
-idouble: 1
-ildouble: 1
-ldouble: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sinh_upward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+double: 2
+float: 3
+idouble: 2
+ifloat: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tan":
 ildouble: 1