We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973dd8a commit 3936221Copy full SHA for 3936221
src/xss-network-qsort.hpp
@@ -72,9 +72,11 @@ X86_SIMD_SORT_UNROLL_LOOP(64)
72
template <typename vtype, int numVecs, typename reg_t = typename vtype::reg_t>
73
X86_SIMD_SORT_INLINE void sort_n_vec(typename vtype::type_t *arr, int32_t N)
74
{
75
- if (numVecs > 1 && N * 2 <= numVecs * vtype::numlanes) {
76
- sort_n_vec<vtype, numVecs / 2>(arr, N);
77
- return;
+ if constexpr (numVecs > 1) {
+ if (N * 2 <= numVecs * vtype::numlanes) {
+ sort_n_vec<vtype, numVecs / 2>(arr, N);
78
+ return;
79
+ }
80
}
81
82
reg_t vecs[numVecs];
0 commit comments