Skip to content

Commit

Permalink
Merge pull request #2337 from johnplatts:hwy_sort_test_compile_fix_10…
Browse files Browse the repository at this point in the history
…0124

PiperOrigin-RevId: 681057554
  • Loading branch information
copybara-github committed Oct 1, 2024
2 parents 464c360 + 7df8e48 commit 15dccd5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions hwy/contrib/sort/sort_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ void TestSortIota(hwy::ThreadPool& pool) {
}

void TestAllSortIota() {
if constexpr (VQSORT_ENABLED) {
hwy::ThreadPool pool(hwy::HaveThreadingSupport() ? 4 : 0);
TestSortIota<uint32_t>(pool);
TestSortIota<int32_t>(pool);
if (hwy::HaveInteger64()) {
TestSortIota<int64_t>(pool);
TestSortIota<uint64_t>(pool);
}
TestSortIota<float>(pool);
if (hwy::HaveFloat64()) {
TestSortIota<double>(pool);
}
fprintf(stderr, "Iota OK\n");
#if VQSORT_ENABLED
hwy::ThreadPool pool(hwy::HaveThreadingSupport() ? 4 : 0);
TestSortIota<uint32_t>(pool);
TestSortIota<int32_t>(pool);
if (hwy::HaveInteger64()) {
TestSortIota<int64_t>(pool);
TestSortIota<uint64_t>(pool);
}
TestSortIota<float>(pool);
if (hwy::HaveFloat64()) {
TestSortIota<double>(pool);
}
fprintf(stderr, "Iota OK\n");
#endif
}

// Supports full/partial sort and select.
Expand Down

0 comments on commit 15dccd5

Please sign in to comment.