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]

[PATCH] Reduce ldouble ULPs for jn tests on x86


The ULPs for the recently added jn tests were only as big because of the
loss of precision in the argument.

Andreas.

2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>

	* sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
	tests.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index ebd46b0..cb73081 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -645,47 +645,45 @@ float: 1
 ifloat: 1
 double: 1
 idouble: 1
-ldouble: 82
-ildouble: 82
+ldouble: 1
+ildouble: 1
 Test "jn (3, 2.4048255576957729) == 0.19899990535769083404042146764530813":
-ldouble: 186
-ildouble: 186
+ldouble: 1
+ildouble: 1
 Test "jn (4, 2.4048255576957729) == 0.647466661641779720084932282551219891E-1":
-ldouble: 185
-ildouble: 185
+ldouble: 2
+ildouble: 2
 Test: "jn (5, 2.4048255576957729) == 0.163892432048058525099230549946147698E-1":
 float: 1
 ifloat: 1
 double: 1
 idouble: 1
-ldouble: 249
-ildouble: 249
+ldouble: 3
+ildouble: 3
 Test "jn (6, 2.4048255576957729) == 0.34048184720278336646673682895929161E-2":
 float: 2
 ifloat: 2
 double: 1
 idouble: 1
-ldouble: 511
-ildouble: 511
+ldouble: 1
+ildouble: 1
 Test "jn (7, 2.4048255576957729) == 0.60068836573295394221291569249883076E-3":
 float: 2
 ifloat: 2
 double: 1
 idouble: 1
-ldouble: 428
-ildouble: 428
 Test "jn (8, 2.4048255576957729) == 0.92165786705344923232879022467054148E-4":
 float: 3
 ifloat: 3
 double: 1
 idouble: 1
-ldouble: 609
-ildouble: 609
+ldouble: 2
+ildouble: 2
 Test "jn (9, 2.4048255576957729) == 0.12517270977961513005428966643852564E-4":
 float: 4
 ifloat: 4
-ldouble: 750
-ildouble: 750
+ldouble: 2
+ildouble: 2
 
 # lgamma
 Test "lgamma (-0.5) == log(2*sqrt(pi))":
@@ -1217,8 +1215,8 @@ double: 5
 float: 4
 idouble: 5
 ifloat: 4
-ildouble: 750
-ldouble: 750
+ildouble: 3
+ldouble: 3
 
 Function: "lgamma":
 double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index aafdac7..2847f78 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -671,8 +671,8 @@ double: 2
 float: 1
 idouble: 2
 ifloat: 1
-ildouble: 82
-ldouble: 82
+ildouble: 1
+ldouble: 1
 Test "jn (3, -1.0) == -0.0195633539826684059189053216217515083":
 ildouble: 1
 ldouble: 1
@@ -706,48 +706,46 @@ ldouble: 1
 Test "jn (3, 2.4048255576957729) == 0.19899990535769083404042146764530813":
 double: 3
 idouble: 3
-ildouble: 186
-ldouble: 186
+ildouble: 1
+ldouble: 1
 Test "jn (4, 2.4048255576957729) == 0.647466661641779720084932282551219891E-1":
 double: 1
 idouble: 1
-ildouble: 185
-ldouble: 185
+ildouble: 2
+ldouble: 2
 Test "jn (5, 2.4048255576957729) == 0.163892432048058525099230549946147698E-1":
 double: 3
 float: 1
 idouble: 3
 ifloat: 1
-ildouble: 249
-ldouble: 249
+ildouble: 3
+ldouble: 3
 Test "jn (6, 2.4048255576957729) == 0.34048184720278336646673682895929161E-2":
 double: 4
 float: 3
 idouble: 4
 ifloat: 3
-ildouble: 511
-ldouble: 511
+ildouble: 1
+ldouble: 1
 Test "jn (7, 2.4048255576957729) == 0.60068836573295394221291569249883076E-3":
 double: 3
 float: 5
 idouble: 3
 ifloat: 5
-ildouble: 428
-ldouble: 428
 Test "jn (8, 2.4048255576957729) == 0.92165786705344923232879022467054148E-4":
 double: 3
 float: 2
 idouble: 3
 ifloat: 2
-ildouble: 609
-ldouble: 609
+ildouble: 2
+ldouble: 2
 Test "jn (9, 2.4048255576957729) == 0.12517270977961513005428966643852564E-4":
 double: 1
 float: 2
 idouble: 1
 ifloat: 2
-ildouble: 750
-ldouble: 750
+ildouble: 2
+ldouble: 2
 
 # lgamma
 Test "lgamma (-0.5) == log(2*sqrt(pi))":
@@ -1296,8 +1294,8 @@ double: 4
 float: 5
 idouble: 4
 ifloat: 5
-ildouble: 750
-ldouble: 750
+ildouble: 3
+ldouble: 3
 
 Function: "lgamma":
 double: 1
-- 
1.7.9


-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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