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

Commit 2820bd8

Browse files
Convert literals to hex literals in k-nucleotide-9
Removing binary literals allows building this test with an older C# compiler; change the others with them to improve readability.
1 parent 28f3f39 commit 2820bd8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/src/JIT/Performance/CodeQuality/BenchmarksGame/k-nucleotide/k-nucleotide-9.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ static bool Bench(TestHarnessHelpers helpers, bool verbose)
304304

305305
bool ok = true;
306306

307-
var task18 = count4(18, 34359738367, d => writeCount(d, "GGTATTTTAATTTATAGT", helpers.expectedCountFragments[4], ref ok));
308-
var task12 = count4(12, 8388607, d => writeCount(d, "GGTATTTTAATT", helpers.expectedCountFragments[3], ref ok));
309-
var task6 = count(6, 0b1111111111, d => writeCount(d, "GGTATT", helpers.expectedCountFragments[2], ref ok));
310-
var task4 = count(4, 0b111111, d => writeCount(d, "GGTA", helpers.expectedCountFragments[1], ref ok));
311-
var task3 = count(3, 0b1111, d => writeCount(d, "GGT", helpers.expectedCountFragments[0], ref ok));
312-
var task2 = count(2, 0b11, d => writeFrequencies(d, 2, helpers.expectedFrequencies[1], ref ok));
307+
var task18 = count4(18, 0x7FFFFFFFF, d => writeCount(d, "GGTATTTTAATTTATAGT", helpers.expectedCountFragments[4], ref ok));
308+
var task12 = count4(12, 0x7FFFFF, d => writeCount(d, "GGTATTTTAATT", helpers.expectedCountFragments[3], ref ok));
309+
var task6 = count(6, 0x3FF, d => writeCount(d, "GGTATT", helpers.expectedCountFragments[2], ref ok));
310+
var task4 = count(4, 0x3F, d => writeCount(d, "GGTA", helpers.expectedCountFragments[1], ref ok));
311+
var task3 = count(3, 0xF, d => writeCount(d, "GGT", helpers.expectedCountFragments[0], ref ok));
312+
var task2 = count(2, 0x3, d => writeFrequencies(d, 2, helpers.expectedFrequencies[1], ref ok));
313313
var task1 = count(1, 0, d => writeFrequencies(d, 1, helpers.expectedFrequencies[0], ref ok));
314314

315315
if (verbose)

0 commit comments

Comments
 (0)