removed unecessary mormordsort if

This commit is contained in:
Richard Thier 2024-04-11 17:52:58 +02:00
parent 32e98de308
commit ae2cd09452

View File

@ -219,9 +219,7 @@ static inline void mormord_sort_impl(uint32_t *a, int n, int j) noexcept {
uint32_t from = real_radics[i];
/* non-inclusive */
uint32_t to = real_radics[i + 1];
if(from < to) { // TODO: check if this "if" is needed!
mormord_sort_impl(&a[from], (to - (from)), j - 1);
}
mormord_sort_impl(&a[from], (to - (from)), j - 1);
}
}
static inline void mormord_sort(uint32_t *a, int n) noexcept {