diff options
author | Tanner Gooding <tannergooding@users.noreply.github.com> | 2017-03-22 22:44:40 -0700 |
---|---|---|
committer | Dan Moseley <danmose@microsoft.com> | 2017-03-22 22:44:40 -0700 |
commit | 72c57d9d9fd2d4cd8c96f124d132d316c8ef6013 (patch) | |
tree | 33e4152de6b9e38f575c2e1782cd29f6beb36644 /src/pal/tests | |
parent | ab0fbce6b629d081c1102d353abab0d8febd4487 (diff) | |
download | coreclr-72c57d9d9fd2d4cd8c96f124d132d316c8ef6013.tar.gz coreclr-72c57d9d9fd2d4cd8c96f124d132d316c8ef6013.tar.bz2 coreclr-72c57d9d9fd2d4cd8c96f124d132d316c8ef6013.zip |
Removing the special handling in classlibnative for atan2(±∞, ±∞) and pow(-1.0, ±∞). (#10295)
* Removing the special handling in classlibnative for atan2(±∞, ±∞) and pow(-1.0, ±∞).
* Fixing up the logic for HAVE_COMPATIBLE_POW in the PAL layer.
Diffstat (limited to 'src/pal/tests')
-rw-r--r-- | src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp | 12 | ||||
-rw-r--r-- | src/pal/tests/palsuite/c_runtime/powf/test1/test1.c | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp b/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp index 0a05cd5a47..7eea316e62 100644 --- a/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp +++ b/src/pal/tests/palsuite/c_runtime/pow/test1/test1.cpp @@ -106,6 +106,9 @@ int __cdecl main(int argc, char **argv) { -2.7182818284590452, 1, -2.7182818284590452, PAL_EPSILON * 10 }, // x: -(e) expected: e { -2.7182818284590452, PAL_POSINF, PAL_POSINF, 0 }, // x: -(e) + { -1.0, PAL_NEGINF, 1.0, PAL_EPSILON * 10 }, + { -1.0, PAL_POSINF, 1.0, PAL_EPSILON * 10 }, + { -0.0, PAL_NEGINF, PAL_POSINF, 0 }, { -0.0, -1, PAL_NEGINF, 0 }, { -0.0, -0.0, 1, PAL_EPSILON * 10 }, @@ -113,6 +116,9 @@ int __cdecl main(int argc, char **argv) { -0.0, 1, -0.0, PAL_EPSILON }, { -0.0, PAL_POSINF, 0, PAL_EPSILON }, + { PAL_NAN, -0.0, 1.0, PAL_EPSILON * 10 }, + { PAL_NAN, 0, 1.0, PAL_EPSILON * 10 }, + { 0.0, PAL_NEGINF, PAL_POSINF, 0 }, { 0.0, -1, PAL_POSINF, 0 }, { 0, -0.0, 1, PAL_EPSILON * 10 }, @@ -211,12 +217,6 @@ int __cdecl main(int argc, char **argv) validate_isnan(-2.7182818284590452, 0.78539816339744828); // x: -(e) y: pi / 4 validate_isnan(-2.7182818284590452, 1.5707963267948966); // x: -(e) y: pi / 2 - validate_isnan(-1, PAL_NEGINF); - validate_isnan(-1, PAL_POSINF); - - validate_isnan(PAL_NAN, -0.0); - validate_isnan(PAL_NAN, 0); - validate_isnan(PAL_NEGINF, PAL_NAN); validate_isnan(PAL_NAN, PAL_NEGINF); diff --git a/src/pal/tests/palsuite/c_runtime/powf/test1/test1.c b/src/pal/tests/palsuite/c_runtime/powf/test1/test1.c index ca738e8c8d..e8933c5ce2 100644 --- a/src/pal/tests/palsuite/c_runtime/powf/test1/test1.c +++ b/src/pal/tests/palsuite/c_runtime/powf/test1/test1.c @@ -104,7 +104,10 @@ int __cdecl main(int argc, char **argv) { -2.71828183f, 0, 1, PAL_EPSILON * 10 }, // x: -(e) { -2.71828183f, 1, -2.71828183f, PAL_EPSILON * 10 }, // x: -(e) expected: e { -2.71828183f, PAL_POSINF, PAL_POSINF, 0 }, // x: -(e) - + + { -1.0, PAL_NEGINF, 1.0, PAL_EPSILON * 10 }, + { -1.0, PAL_POSINF, 1.0, PAL_EPSILON * 10 }, + { -0.0, PAL_NEGINF, PAL_POSINF, 0 }, { -0.0, -1, PAL_NEGINF, 0 }, { -0.0f, -0.0f, 1, PAL_EPSILON * 10 }, @@ -112,6 +115,9 @@ int __cdecl main(int argc, char **argv) { -0.0, 1, -0.0, PAL_EPSILON }, { -0.0, PAL_POSINF, 0, PAL_EPSILON }, + { PAL_NAN, -0.0, 1.0, PAL_EPSILON * 10 }, + { PAL_NAN, 0, 1.0, PAL_EPSILON * 10 }, + { 0.0, PAL_NEGINF, PAL_POSINF, 0 }, { 0.0, -1, PAL_POSINF, 0 }, { 0, -0.0f, 1, PAL_EPSILON * 10 }, @@ -210,12 +216,6 @@ int __cdecl main(int argc, char **argv) validate_isnan(-2.71828183f, 0.785398163f); // x: -(e) y: pi / 4 validate_isnan(-2.71828183f, 1.57079633f); // x: -(e) y: pi / 2 - validate_isnan(-1, PAL_NEGINF); - validate_isnan(-1, PAL_POSINF); - - validate_isnan(PAL_NAN, -0.0); - validate_isnan(PAL_NAN, 0); - validate_isnan(PAL_NEGINF, PAL_NAN); validate_isnan(PAL_NAN, PAL_NEGINF); |