Skip to content

Commit

Permalink
Resort ULPs files with gen-libm-test.pl -n in C locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Feb 20, 2012
1 parent 06b99b0 commit 5ad91f6
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 38 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2012-02-20 Joseph Myers <joseph@codesourcery.com>

* sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
in C locale.
* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
* sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

2012-02-20 Aurelien Jarno <aurelien@aurel32.net>

* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
Expand Down
44 changes: 22 additions & 22 deletions sysdeps/i386/fpu/libm-test-ulps
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,13 @@ double: 2
idouble: 2
ildouble: 1
ldouble: 1
Test "jn (2, 2.4048255576957729) == 0.43175480701968038399746111312430703":
double: 1
float: 1
idouble: 1
ifloat: 1
ildouble: 1
ldouble: 1
Test "jn (3, -1.0) == -0.0195633539826684059189053216217515083":
ildouble: 1
ldouble: 1
Expand All @@ -640,50 +647,43 @@ double: 1
idouble: 1
ildouble: 1
ldouble: 1
Test "jn (2, 2.4048255576957729) == 0.43175480701968038399746111312430703":
float: 1
ifloat: 1
double: 1
idouble: 1
ldouble: 1
ildouble: 1
Test "jn (3, 2.4048255576957729) == 0.19899990535769083404042146764530813":
ldouble: 1
ildouble: 1
ldouble: 1
Test "jn (4, 2.4048255576957729) == 0.647466661641779720084932282551219891E-1":
ldouble: 2
ildouble: 2
Test: "jn (5, 2.4048255576957729) == 0.163892432048058525099230549946147698E-1":
float: 1
ifloat: 1
ldouble: 2
Test "jn (5, 2.4048255576957729) == 0.163892432048058525099230549946147698E-1":
double: 1
float: 1
idouble: 1
ldouble: 3
ifloat: 1
ildouble: 3
ldouble: 3
Test "jn (6, 2.4048255576957729) == 0.34048184720278336646673682895929161E-2":
float: 2
ifloat: 2
double: 1
float: 2
idouble: 1
ldouble: 1
ifloat: 2
ildouble: 1
ldouble: 1
Test "jn (7, 2.4048255576957729) == 0.60068836573295394221291569249883076E-3":
float: 2
ifloat: 2
double: 1
float: 2
idouble: 1
ifloat: 2
Test "jn (8, 2.4048255576957729) == 0.92165786705344923232879022467054148E-4":
float: 3
ifloat: 3
double: 1
float: 3
idouble: 1
ldouble: 2
ifloat: 3
ildouble: 2
ldouble: 2
Test "jn (9, 2.4048255576957729) == 0.12517270977961513005428966643852564E-4":
float: 4
ifloat: 4
ldouble: 2
ildouble: 2
ldouble: 2

# lgamma
Test "lgamma (-0.5) == log(2*sqrt(pi))":
Expand Down
11 changes: 4 additions & 7 deletions sysdeps/powerpc/fpu/libm-test-ulps
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ ildouble: 1
ldouble: 1

# cos
Test "cos (16.0) == -0.9576594803233846418996372326511034717803":
ildouble: 2
ldouble: 2
Test "cos (M_PI_6l * 2.0) == 0.5":
double: 1
float: 1
Expand All @@ -311,9 +314,6 @@ double: 1
float: 1
idouble: 1
ifloat: 1
Test "cos (16.0) == -0.9576594803233846418996372326511034717803"
ildouble: 2
ldouble: 2

# cpow
Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
Expand Down Expand Up @@ -735,7 +735,7 @@ ildouble: 1
ldouble: 1

# sin
Test "sin (16.0) == -0.2879033166650652947844562482186175296207"
Test "sin (16.0) == -0.2879033166650652947844562482186175296207":
ildouble: 2
ldouble: 2

Expand Down Expand Up @@ -919,9 +919,6 @@ idouble: 1
ifloat: 2
ildouble: 2
ldouble: 2
Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
double: 1
idouble: 1
Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
double: 1
idouble: 1
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/sh/sh4/fpu/libm-test-ulps
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ idouble: 1
ifloat: 2

# atan2
Test "atan2 (0.7, -1.0) == 2.530866689200584621918884506789267":
Test "atan2 (-0.7, -1.0) == -2.530866689200584621918884506789267":
float: 3
ifloat: 3
Test "atan2 (-0.7, -1.0) == -2.530866689200584621918884506789267":
Test "atan2 (0.7, -1.0) == 2.530866689200584621918884506789267":
float: 3
ifloat: 3
Test "atan2 (1.4, -0.93) == 2.1571487668237843754887415992772736":
Expand Down
10 changes: 5 additions & 5 deletions sysdeps/sparc/sparc32/fpu/libm-test-ulps
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Begin of automatic generation

# atan2
Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112":
float: 6
ifloat: 6
ildouble: 1
ldouble: 1
Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025":
float: 3
ifloat: 3
Expand All @@ -16,11 +21,6 @@ float: 1
ifloat: 1
ildouble: 1
ldouble: 1
Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112":
float: 6
ifloat: 6
ildouble: 1
ldouble: 1

# atanh
Test "atanh (0.75) == 0.972955074527656652552676371721589865":
Expand Down
5 changes: 3 additions & 2 deletions sysdeps/x86_64/fpu/libm-test-ulps
Original file line number Diff line number Diff line change
Expand Up @@ -810,9 +810,10 @@ Test "sincos (pi/6, &sin_res, &cos_res) puts 0.866025403784438646763723170752936
float: 1
ifloat: 1

# sinh
Test "sinh (0x8p-32) == 1.86264514923095703232705808926175479e-9":
ldouble: 1
ildouble: 1
ldouble: 1

# tan
Test "tan (pi/4) == 1":
Expand Down Expand Up @@ -1326,8 +1327,8 @@ ildouble: 1
ldouble: 1

Function: "sinh":
ldouble: 1
ildouble: 1
ldouble: 1

Function: "tan":
double: 1
Expand Down

0 comments on commit 5ad91f6

Please sign in to comment.