This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Add more tests of cbrt [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 8 Apr 2015 17:56:45 +0000
- Subject: Add more tests of cbrt [committed]
- Authentication-results: sourceware.org; auth=none
This patch adds some randomly-generated tests of cbrt that are
observed to increase ulps on x86_64.
Tested for x86_64 and x86 and ulps updated accordingly. Committed.
(auto-libm-test-out diffs omitted below.)
2015-04-08 Joseph Myers <joseph@codesourcery.com>
* math/auto-libm-test-in: Add more tests of cbrt.
* math/auto-libm-test-out: Regenerated.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index ffb2630..9cf1f58 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -442,6 +442,10 @@ cbrt 0.75
cbrt 0x1p16383
cbrt 0x1p-16383
cbrt 1e5
+cbrt 0x3.132634p+0
+cbrt -0xc.8d0442f2f0d1p-492
+cbrt -0xa.6b142p+40
+cbrt -0x1.f28ab85f3580ap-128
cbrt max
cbrt -max
cbrt min
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 7618316..deac26f 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -638,31 +638,33 @@ ildouble: 1
ldouble: 1
Function: "cbrt":
-double: 1
+double: 3
float: 1
-idouble: 1
+idouble: 3
ifloat: 1
ildouble: 1
ldouble: 1
Function: "cbrt_downward":
-double: 2
+double: 4
float: 1
-idouble: 2
+idouble: 4
ifloat: 1
ildouble: 1
ldouble: 1
Function: "cbrt_towardzero":
-double: 2
-idouble: 2
+double: 3
+float: 1
+idouble: 3
+ifloat: 1
ildouble: 1
ldouble: 1
Function: "cbrt_upward":
-double: 3
+double: 4
float: 1
-idouble: 3
+idouble: 4
ifloat: 1
ildouble: 1
ldouble: 1
--
Joseph S. Myers
joseph@codesourcery.com