From 7df8e484b7d905ef678c3bf7fc9043ef9bfb4637 Mon Sep 17 00:00:00 2001 From: John Platts Date: Tue, 1 Oct 2024 07:11:09 -0500 Subject: [PATCH] Fixed compilation error in sort_test --- hwy/contrib/sort/sort_test.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/hwy/contrib/sort/sort_test.cc b/hwy/contrib/sort/sort_test.cc index 282a9cc4bd..58d245074b 100644 --- a/hwy/contrib/sort/sort_test.cc +++ b/hwy/contrib/sort/sort_test.cc @@ -83,20 +83,20 @@ void TestSortIota(hwy::ThreadPool& pool) { } void TestAllSortIota() { - if constexpr (VQSORT_ENABLED) { - hwy::ThreadPool pool(hwy::HaveThreadingSupport() ? 4 : 0); - TestSortIota(pool); - TestSortIota(pool); - if (hwy::HaveInteger64()) { - TestSortIota(pool); - TestSortIota(pool); - } - TestSortIota(pool); - if (hwy::HaveFloat64()) { - TestSortIota(pool); - } - fprintf(stderr, "Iota OK\n"); +#if VQSORT_ENABLED + hwy::ThreadPool pool(hwy::HaveThreadingSupport() ? 4 : 0); + TestSortIota(pool); + TestSortIota(pool); + if (hwy::HaveInteger64()) { + TestSortIota(pool); + TestSortIota(pool); } + TestSortIota(pool); + if (hwy::HaveFloat64()) { + TestSortIota(pool); + } + fprintf(stderr, "Iota OK\n"); +#endif } // Supports full/partial sort and select.