Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 1c6f494

Browse files
committed
Updated the JIT/Performance/CodeQuality/Math/Functions single-precision tests to have the correct expected results.
1 parent b8bee85 commit 1c6f494

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/Atan2Single.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static partial class MathTests
1313

1414
private const float atan2SingleDeltaX = -0.0004f;
1515
private const float atan2SingleDeltaY = 0.0004f;
16-
private const float atan2SingleExpectedResult = 3926.99082f;
16+
private const float atan2SingleExpectedResult = 3930.14282f;
1717

1818
[Benchmark]
1919
public static void Atan2SingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/AtanSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Atan(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float atanSingleDelta = 0.0004f;
15-
private const float atanSingleExpectedResult = 0.785398163f;
15+
private const float atanSingleExpectedResult = 0.841940999f;
1616

1717
[Benchmark]
1818
public static void AtanSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/CeilingSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Ceiling(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float ceilingSingleDelta = 0.0004f;
15-
private const float ceilingSingleExpectedResult = 2500.0f;
15+
private const float ceilingSingleExpectedResult = 2502.0f;
1616

1717
[Benchmark]
1818
public static void CeilingSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/CosSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Cos(float) over 5000 iterations for the domain 0, PI
1313

1414
private const float cosSingleDelta = 0.000628318531f;
15-
private const float cosSingleExpectedResult = -1.00000000f;
15+
private const float cosSingleExpectedResult = -0.993487537f;
1616

1717
[Benchmark]
1818
public static void CosSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/CoshSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Cosh(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float coshSingleDelta = 0.0004f;
15-
private const float coshSingleExpectedResult = 5876.00605f;
15+
private const float coshSingleExpectedResult = 5876.02588f;
1616

1717
[Benchmark]
1818
public static void CoshSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/ExpSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Exp(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float expSingleDelta = 0.0004f;
15-
private const float expSingleExpectedResult = 5877.18125f;
15+
private const float expSingleExpectedResult = 5877.28564f;
1616

1717
[Benchmark]
1818
public static void ExpSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Floor(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float floorSingleDelta = 0.0004f;
15-
private const float floorSingleExpectedResult = -2500.0f;
15+
private const float floorSingleExpectedResult = -2498.0f;
1616

1717
[Benchmark]
1818
public static void FloorSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/Log10Single.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Log10(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float log10SingleDelta = 0.0004f;
15-
private const float log10SingleExpectedResult = -664.073849f;
15+
private const float log10SingleExpectedResult = -664.094971f;
1616

1717
[Benchmark]
1818
public static void Log10SingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/LogSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static partial class MathTests
1212
// Tests MathF.Log(float) over 5000 iterations for the domain -1, +1
1313

1414
private const float logSingleDelta = 0.0004f;
15-
private const float logSingleExpectedResult = -1529.08655f;
15+
private const float logSingleExpectedResult = -1529.14014f;
1616

1717
[Benchmark]
1818
public static void LogSingleBenchmark()

tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/PowSingle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static partial class MathTests
1313

1414
private const float powSingleDeltaX = -0.0004f;
1515
private const float powSingleDeltaY = 0.0004f;
16-
private const float powSingleExpectedResult = 4659.46274f;
16+
private const float powSingleExpectedResult = 4659.30762f;
1717

1818
[Benchmark]
1919
public static void PowSingleBenchmark()

0 commit comments

Comments
 (0)