Skip to content

Commit f60a119

Browse files
committed
Fixed minor bug in partition code
1 parent 8549cc3 commit f60a119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/avx512-common-qsort.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ X86_SIMD_SORT_INLINE arrsize_t partition_avx512(type_t *arr,
305305
l_store += (vtype::numlanes - amount_ge_pivot);
306306
unpartitioned -= vtype::numlanes;
307307

308+
*smallest = vtype::reducemin(min_vec);
309+
*biggest = vtype::reducemax(max_vec);
308310

309311
return l_store;
310312
}
@@ -369,8 +371,6 @@ X86_SIMD_SORT_INLINE arrsize_t partition_avx512(type_t *arr,
369371
return l_store;
370372
}
371373

372-
#include <iostream>
373-
374374
template <typename vtype,
375375
int num_unroll,
376376
typename type_t = typename vtype::type_t>

0 commit comments

Comments
 (0)