diff options
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs')
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs b/tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs index 9fd7aa32e0..64b5c8f33b 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchI/HeapSort/HeapSort.cs @@ -11,6 +11,8 @@ using Xunit; [assembly: OptimizeForBenchmarks] [assembly: MeasureInstructionsRetired] +namespace Benchstone.BenchI +{ public static class HeapSort { @@ -32,7 +34,7 @@ public static class HeapSort j = i; k = j / 2; m = x[i]; - + // 0 < k <= (n / 2) // 1 <= j <= n while (k > 0) { @@ -113,9 +115,10 @@ public static class HeapSort } return result; } - + public static int Main() { bool result = TestBase(); return (result ? 100 : -1); } } +} |