Skip to content

Commit c151a8d

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/avx512-common-qsort.h

Lines changed: 2 additions & 0 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
}

0 commit comments

Comments
 (0)