diff options
author | Tanner Gooding <tagoo@outlook.com> | 2018-11-12 10:51:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 10:51:16 -0800 |
commit | a49296e266ae9aa0bee760f2fcf51d3497ba818d (patch) | |
tree | 63c1aa67c9d759f55371e078ef8fd712b9391848 /src/classlibnative | |
parent | cab9d87ee3244d84ffac29a0379a22525839f2a1 (diff) | |
download | coreclr-a49296e266ae9aa0bee760f2fcf51d3497ba818d.tar.gz coreclr-a49296e266ae9aa0bee760f2fcf51d3497ba818d.tar.bz2 coreclr-a49296e266ae9aa0bee760f2fcf51d3497ba818d.zip |
Some cleanup of the Math functions from #20788 (#20912)
* Fixing Max, MaxMagnitude, Min, and MinMagnitude for Math/MathF to be IEEE compliant
* Disabling the System.Math.Max/Min tests
* Adding the new c_runtime PAL tests to the CMakeLists to ensure they actually get run.
* Fixing the casing of IlogB to ILogB
* Fixing the new PAL tests to match the correct/expected outputs
* Fixing up PAL_ilogb to correctly handle 0 and NaN
Diffstat (limited to 'src/classlibnative')
-rw-r--r-- | src/classlibnative/float/floatdouble.cpp | 2 | ||||
-rw-r--r-- | src/classlibnative/float/floatsingle.cpp | 2 | ||||
-rw-r--r-- | src/classlibnative/inc/floatdouble.h | 2 | ||||
-rw-r--r-- | src/classlibnative/inc/floatsingle.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/classlibnative/float/floatdouble.cpp b/src/classlibnative/float/floatdouble.cpp index 2e4b382460..e0d0fd95e6 100644 --- a/src/classlibnative/float/floatdouble.cpp +++ b/src/classlibnative/float/floatdouble.cpp @@ -212,7 +212,7 @@ FCIMPLEND /*=====================================Ilog2==================================== ** ==============================================================================*/ -FCIMPL1_V(int, COMDouble::IlogB, double x) +FCIMPL1_V(int, COMDouble::ILogB, double x) FCALL_CONTRACT; return (int)ilogb(x); diff --git a/src/classlibnative/float/floatsingle.cpp b/src/classlibnative/float/floatsingle.cpp index 23c1445e43..39b9fd6b6f 100644 --- a/src/classlibnative/float/floatsingle.cpp +++ b/src/classlibnative/float/floatsingle.cpp @@ -199,7 +199,7 @@ FCIMPLEND /*=====================================Ilog2==================================== ** ==============================================================================*/ -FCIMPL1_V(int, COMSingle::IlogB, float x) +FCIMPL1_V(int, COMSingle::ILogB, float x) FCALL_CONTRACT; return (int)ilogbf(x); diff --git a/src/classlibnative/inc/floatdouble.h b/src/classlibnative/inc/floatdouble.h index 602b45b2f8..40d5e2ee8a 100644 --- a/src/classlibnative/inc/floatdouble.h +++ b/src/classlibnative/inc/floatdouble.h @@ -26,7 +26,7 @@ public: FCDECL1_V(static double, Floor, double x); FCDECL2_VV(static double, FMod, double x, double y); FCDECL3_VVV(static double, FusedMultiplyAdd, double x, double y, double z); - FCDECL1_V(static int, IlogB, double x); + FCDECL1_V(static int, ILogB, double x); FCDECL1_V(static double, Log, double x); FCDECL1_V(static double, Log2, double x); FCDECL1_V(static double, Log10, double x); diff --git a/src/classlibnative/inc/floatsingle.h b/src/classlibnative/inc/floatsingle.h index f54a65028a..b23aea3ee7 100644 --- a/src/classlibnative/inc/floatsingle.h +++ b/src/classlibnative/inc/floatsingle.h @@ -26,7 +26,7 @@ public: FCDECL1_V(static float, Floor, float x); FCDECL2_VV(static float, FMod, float x, float y); FCDECL3_VVV(static float, FusedMultiplyAdd, float x, float y, float z); - FCDECL1_V(static int, IlogB, float x); + FCDECL1_V(static int, ILogB, float x); FCDECL1_V(static float, Log, float x); FCDECL1_V(static float, Log2, float x); FCDECL1_V(static float, Log10, float x); |