Added C# implementation of System.Math.ScaleB and System.MathF.ScaleB… (#42476)
authorAlex Covington <68252706+alexcovington@users.noreply.github.com>
Mon, 25 Jan 2021 22:11:45 +0000 (14:11 -0800)
committerGitHub <noreply@github.com>
Mon, 25 Jan 2021 22:11:45 +0000 (22:11 +0000)
commit220bf9714248cca8ef18cb4175ae83b1cf210a70
tree0d131d191c69b9260931f2f80f88aff544b27591
parent9f8aab73d93156933ae65a476204bf62c02f6537
Added C# implementation of System.Math.ScaleB and System.MathF.ScaleB… (#42476)

* Added C# implementation of System.Math.ScaleB and System.MathF.ScaleB, removed old bindings, added test cases.

* Moved tests into System.Runtime.Extensions tests.

* Removed unmanaged scalbn and scalbnf from pal and mono

* Update src/libraries/System.Private.CoreLib/src/System/Math.cs

Co-authored-by: Adeel Mujahid <adeelbm@outlook.com>
* Styling changes.

* Conditionally include ScaleB for Mono.

* Update src/mono/mono/metadata/sysmath.c

Tabs, not spaces.

Co-authored-by: Adeel Mujahid <adeelbm@outlook.com>
* Removing more scalb from PAL

* Completely removed ScaleB from Mono

* Cleaning up more scalbn

* Added comments for ScaleB, updated licenses for musl and Sun

* Fixed whitespace.

* Removing old references, fixing double ScaleB definition that merge didn't resolve

Co-authored-by: Adeel Mujahid <adeelbm@outlook.com>
25 files changed:
THIRD-PARTY-NOTICES.TXT
src/coreclr/System.Private.CoreLib/src/System/Math.CoreCLR.cs
src/coreclr/System.Private.CoreLib/src/System/MathF.CoreCLR.cs
src/coreclr/classlibnative/float/floatdouble.cpp
src/coreclr/classlibnative/float/floatsingle.cpp
src/coreclr/classlibnative/inc/floatdouble.h
src/coreclr/classlibnative/inc/floatsingle.h
src/coreclr/pal/inc/pal.h
src/coreclr/pal/src/cruntime/math.cpp
src/coreclr/pal/src/include/pal/palinternal.h
src/coreclr/pal/tests/palsuite/CMakeLists.txt
src/coreclr/pal/tests/palsuite/c_runtime/scalbn/test1/test1.cpp [deleted file]
src/coreclr/pal/tests/palsuite/c_runtime/scalbnf/test1/test1.cpp [deleted file]
src/coreclr/pal/tests/palsuite/compilableTests.txt
src/coreclr/pal/tests/palsuite/paltestlist.txt
src/coreclr/vm/ecalllist.h
src/libraries/System.Private.CoreLib/src/System/Math.cs
src/libraries/System.Private.CoreLib/src/System/MathF.cs
src/libraries/System.Runtime.Extensions/tests/System/Math.cs
src/libraries/System.Runtime.Extensions/tests/System/MathF.cs
src/mono/mono/metadata/icall-decl.h
src/mono/mono/metadata/icall-def-netcore.h
src/mono/mono/metadata/sysmath.c
src/mono/netcore/System.Private.CoreLib/src/System/Math.Mono.cs
src/mono/netcore/System.Private.CoreLib/src/System/MathF.Mono.cs