This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add more tests of clog and clog10 [committed]


This patch adds some randomly-generated tests of clog and clog10 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-09  Joseph Myers  <joseph@codesourcery.com>

	* math/auto-libm-test-in: Add more tests of clog and clog10.
	* 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 433742a..85fc762 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -564,6 +564,11 @@ clog 0x7.40ac68p+0 0x4.251bb8p-4
 clog 0xa.3ac3cp+68 0x1.47239ep+68
 clog 0x3.8ff10cp+0 -0x6.b0794p-4
 
+clog 0xa.a39ffp-4 -0x2.360c38p-4
+clog 0x6.9a4569067b6ecp-4 0xb.0a30d15e7d798p-4
+clog -0x1.105436p+0 -0x6.66396df3cc7ap-4
+clog -0x2.c90b952282392dep-4 0x1.43cda16634cc7046p+0
+
 clog 0x1.fffffep+127 0x1.fffffep+127
 clog 0x1.fffffep+127 1.0
 clog 0x1p-149 0x1p-149
@@ -692,6 +697,17 @@ clog10 0x7.40ac68p+0 0x4.251bb8p-4
 clog10 0xa.3ac3cp+68 0x1.47239ep+68
 clog10 0x3.8ff10cp+0 -0x6.b0794p-4
 
+clog10 0x2.83f8ap+0 -0xb.0b529p-4
+clog10 -0x2.eb21fcp-4 -0x6.59bbc8p-4
+clog10 -0x3.3f7fc4p-4 0xb.ba599p-4
+clog10 0x1.cd1ab2p-124 -0x8p-152
+clog10 0xa.32054p-4 0x2.c7e71cp-4
+clog10 -0x5.9ecf8c7b5a0f4p-4 0xa.a945e5f8761c8p-4
+clog10 0x1.7a858p+0 -0x6.d940dp-4
+clog10 -0x2.51320d99da5a2p-4 0x3.b8176p-4
+clog10 -0x1.25c2d3e172df8p+0 0
+clog10 0x1.0c684e35d0b2ap+0 -0x7.37df8a65c28fp-4
+
 clog10 0x1.fffffep+127 0x1.fffffep+127
 clog10 0x1.fffffep+127 1.0
 clog10 0x1p-149 0x1p-149
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 6a036f5..ef8918e 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -742,12 +742,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog":
-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: Imaginary part of "clog":
 double: 1
@@ -756,12 +756,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog10":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 2
-ldouble: 2
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 4
+ldouble: 4
 
 Function: Imaginary part of "clog10":
 double: 1
@@ -770,12 +770,12 @@ ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_downward":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 4
-ldouble: 4
+double: 4
+float: 3
+idouble: 4
+ifloat: 3
+ildouble: 7
+ldouble: 7
 
 Function: Imaginary part of "clog10_downward":
 double: 1
@@ -786,12 +786,12 @@ ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_towardzero":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-ildouble: 4
-ldouble: 4
+double: 4
+float: 3
+idouble: 4
+ifloat: 3
+ildouble: 7
+ldouble: 7
 
 Function: Imaginary part of "clog10_towardzero":
 double: 1
@@ -802,12 +802,12 @@ ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_upward":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 4
-ldouble: 4
+double: 4
+float: 4
+idouble: 4
+ifloat: 4
+ildouble: 6
+ldouble: 6
 
 Function: Imaginary part of "clog10_upward":
 double: 1
@@ -818,12 +818,12 @@ ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog_downward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-ildouble: 2
-ldouble: 2
+double: 4
+float: 5
+idouble: 4
+ifloat: 5
+ildouble: 5
+ldouble: 5
 
 Function: Imaginary part of "clog_downward":
 double: 1
@@ -834,12 +834,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog_towardzero":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-ildouble: 2
-ldouble: 2
+double: 4
+float: 5
+idouble: 4
+ifloat: 5
+ildouble: 5
+ldouble: 5
 
 Function: Imaginary part of "clog_towardzero":
 double: 1
@@ -850,12 +850,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog_upward":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-ildouble: 2
-ldouble: 2
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
+ildouble: 6
+ldouble: 6
 
 Function: Imaginary part of "clog_upward":
 double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 5d9bc9b..bbb6abc 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -818,12 +818,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog":
-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: Imaginary part of "clog":
 float: 1
@@ -832,76 +832,76 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog10":
-double: 2
+double: 3
 float: 2
-idouble: 2
+idouble: 3
 ifloat: 2
-ildouble: 2
-ldouble: 2
+ildouble: 4
+ldouble: 4
 
 Function: Imaginary part of "clog10":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_downward":
-double: 3
-float: 3
-idouble: 3
-ifloat: 3
-ildouble: 4
-ldouble: 4
+double: 6
+float: 5
+idouble: 6
+ifloat: 5
+ildouble: 7
+ldouble: 7
 
 Function: Imaginary part of "clog10_downward":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
+double: 2
+float: 3
+idouble: 2
+ifloat: 3
 ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_towardzero":
-double: 3
-float: 2
-idouble: 3
-ifloat: 2
-ildouble: 4
-ldouble: 4
+double: 4
+float: 3
+idouble: 4
+ifloat: 3
+ildouble: 7
+ldouble: 7
 
 Function: Imaginary part of "clog10_towardzero":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
+double: 2
+float: 4
+idouble: 2
+ifloat: 4
 ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog10_upward":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-ildouble: 4
-ldouble: 4
+double: 6
+float: 5
+idouble: 6
+ifloat: 5
+ildouble: 6
+ldouble: 6
 
 Function: Imaginary part of "clog10_upward":
-double: 1
+double: 2
 float: 3
-idouble: 1
+idouble: 2
 ifloat: 3
 ildouble: 2
 ldouble: 2
 
 Function: Real part of "clog_downward":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 2
-ldouble: 2
+double: 4
+float: 5
+idouble: 4
+ifloat: 5
+ildouble: 5
+ldouble: 5
 
 Function: Imaginary part of "clog_downward":
 double: 1
@@ -912,12 +912,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog_towardzero":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 2
-ldouble: 2
+double: 7
+float: 5
+idouble: 7
+ifloat: 5
+ildouble: 5
+ldouble: 5
 
 Function: Imaginary part of "clog_towardzero":
 double: 1
@@ -928,12 +928,12 @@ ildouble: 1
 ldouble: 1
 
 Function: Real part of "clog_upward":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 2
-ldouble: 2
+double: 5
+float: 5
+idouble: 5
+ifloat: 5
+ildouble: 6
+ldouble: 6
 
 Function: Imaginary part of "clog_upward":
 double: 1

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]