This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Add more tests of atan [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 8 Apr 2015 21:00:31 +0000
- Subject: Add more tests of atan [committed]
- Authentication-results: sourceware.org; auth=none
This patch adds some randomly-generated tests of atan 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 atan.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 9cf1f58..0fa1f97 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -242,6 +242,9 @@ atan 0x1p-600
atan 0x1p-10000
atan -0x3.b02d84p-4
atan -0x3.3fb708p-4
+atan -0x2.3249ap+0
+atan -0x1.363f46p+0
+atan -0x1.ad4c0ap+0
atan min
atan -min
atan min_subnorm
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 924abc9..e3554ed 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -77,6 +77,10 @@ ifloat: 1
ildouble: 5
ldouble: 4
+Function: "atan":
+ildouble: 1
+ldouble: 1
+
Function: "atan2":
ildouble: 1
ldouble: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index deac26f..33e597a 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -125,6 +125,12 @@ ifloat: 3
ildouble: 4
ldouble: 4
+Function: "atan":
+float: 1
+ifloat: 1
+ildouble: 1
+ldouble: 1
+
Function: "atan2":
float: 1
ifloat: 1
@@ -173,9 +179,9 @@ ldouble: 1
Function: "atan_upward":
double: 1
-float: 1
+float: 2
idouble: 1
-ifloat: 1
+ifloat: 2
ildouble: 1
ldouble: 1
--
Joseph S. Myers
joseph@codesourcery.com