Skip to content

Commit 3607752

Browse files
author
Raghuveer Devulapalli
committed
Minor code format
1 parent c55ab7a commit 3607752

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/xss-common-keyvaluesort.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,19 +430,18 @@ xss_qsort_kv(T1 *keys, T2 *indexes, arrsize_t arrsize, bool hasnan)
430430
#endif // XSS_TEST_KEYVALUE_BASE_CASE
431431

432432
if (minarrsize) {
433-
if constexpr (std::is_floating_point_v<T1>) {
434-
arrsize_t nan_count = 0;
433+
arrsize_t nan_count = 0;
434+
if constexpr (xss::fp::is_floating_point_v<T1>) {
435435
if (UNLIKELY(hasnan)) {
436436
nan_count
437437
= replace_nan_with_inf<full_vector<T1>>(keys, arrsize);
438438
}
439-
kvsort_<keytype, valtype>(keys, indexes, 0, arrsize - 1, maxiters);
440-
replace_inf_with_nan(keys, arrsize, nan_count);
441439
}
442440
else {
443441
UNUSED(hasnan);
444-
kvsort_<keytype, valtype>(keys, indexes, 0, arrsize - 1, maxiters);
445442
}
443+
kvsort_<keytype, valtype>(keys, indexes, 0, arrsize - 1, maxiters);
444+
replace_inf_with_nan(keys, arrsize, nan_count);
446445
}
447446
}
448447

0 commit comments

Comments
 (0)