summary refs log tree commit diff
path: root/math/auto-libm-test-in
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-08-10 15:25:10 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-08-10 15:25:10 +0000
commitd0649b2d8efca33363e399f1ba07d77e85901cfc (patch)
tree7b9e371adc311e50e9dd8083f9b602c44310df0b /math/auto-libm-test-in
parentd2ff039fa1636e42fad4a4074f9889ad47abc426 (diff)
downloadglibc-d0649b2d8efca33363e399f1ba07d77e85901cfc.tar.gz
glibc-d0649b2d8efca33363e399f1ba07d77e85901cfc.tar.xz
glibc-d0649b2d8efca33363e399f1ba07d77e85901cfc.zip
Fix ldbl-128ibm sinhl inaccuracy near 0 (bug 18789).
ldbl-128ibm sinhl uses a too-big threshold to decide when to return
the argument, resulting in large errors.  This patch fixes it to use a
more appropriate threshold.

Tested for x86_64, x86 and powerpc.

	[BZ #18789]
	* sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
	smaller threshold for returning the argument.
	* math/auto-libm-test-in: Add more tests of sinh.
	* math/auto-libm-test-out: Regenerated.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r--math/auto-libm-test-in22
1 files changed, 22 insertions, 0 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index bb6d30e6f5..c33334c8cc 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -2508,6 +2508,28 @@ sinh 0
 sinh -0
 sinh 0.75
 sinh 0x8p-32
+sinh 0x1p-5
+sinh -0x1p-5
+sinh 0x1p-10
+sinh -0x1p-10
+sinh 0x1p-20
+sinh -0x1p-20
+sinh 0x1p-30
+sinh -0x1p-30
+sinh 0x1p-40
+sinh -0x1p-40
+sinh 0x1p-50
+sinh -0x1p-50
+sinh 0x1p-60
+sinh -0x1p-60
+sinh 0x1p-70
+sinh -0x1p-70
+sinh 0x1p-100
+sinh -0x1p-100
+sinh 0x1p-1000
+sinh -0x1p-1000
+sinh 0x1p-10000
+sinh -0x1p-10000
 sinh 22
 sinh 23
 sinh 24