Updating Math.Round and MathF.Round to be IEEE compliant so that the intrinsic and...
authorTanner Gooding <tagoo@outlook.com>
Mon, 5 Aug 2019 21:54:22 +0000 (14:54 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Aug 2019 21:54:22 +0000 (14:54 -0700)
commite277463a23e7eba3e6b636f9b7d8a80fa3d8acd1
treefc48d942b257418b2c4fc5dad928dd29d2cbf102
parent534b708fd5df77af37615351e0605621bbeccf39
Updating Math.Round and MathF.Round to be IEEE compliant so that the intrinsic and managed form are deterministic. (dotnet/coreclr#25901)

* Updating Math.Round and MathF.Round to be IEEE compliant so that the intrinsic and managed form are deterministic.

* Fixing the Math.Round and MathF.Round handling for values greater than 0.5 and less than 1.0

* Applying formatting patch.

Commit migrated from https://github.com/dotnet/coreclr/commit/c384e36c84c22393efeeb1981538b0aef02cf97a
src/coreclr/src/jit/utils.cpp
src/libraries/System.Private.CoreLib/src/System/Double.cs
src/libraries/System.Private.CoreLib/src/System/Math.cs
src/libraries/System.Private.CoreLib/src/System/MathF.cs
src/libraries/System.Private.CoreLib/src/System/Single.cs