Skip to content

Commit

Permalink
Moved declaration of comparison_func to fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sterrettm2 committed Jan 31, 2024
1 parent b45708a commit e55f7fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/xss-common-includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,7 @@ struct avx2_half_vector;

enum class simd_type : int { AVX2, AVX512 };

template <typename vtype, typename T = typename vtype::type_t>
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b);

#endif // XSS_COMMON_INCLUDES
2 changes: 1 addition & 1 deletion src/xss-common-qsort.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ X86_SIMD_SORT_INLINE arrsize_t move_nans_to_end_of_array(T *arr, arrsize_t size)
return size - count - 1;
}

template <typename vtype, typename T = typename vtype::type_t>
template <typename vtype, typename T>
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b)
{
return a < b;
Expand Down
3 changes: 0 additions & 3 deletions src/xss-pivot-selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ type_t next_value(type_t value){
template <typename vtype, typename mm_t>
X86_SIMD_SORT_INLINE void COEX(mm_t &a, mm_t &b);

template <typename vtype, typename T>
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b);

template <typename vtype, typename type_t>
X86_SIMD_SORT_INLINE type_t get_pivot(type_t *arr,
const arrsize_t left,
Expand Down

0 comments on commit e55f7fb

Please sign in to comment.