Skip to content

Commit 88edcf7

Browse files
sterrettm2r-devulap
authored andcommitted
Moved declaration of comparison_func to fix build issues
1 parent 0870e1e commit 88edcf7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/xss-common-includes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,7 @@ struct avx2_half_vector;
106106

107107
enum class simd_type : int { AVX2, AVX512 };
108108

109+
template <typename vtype, typename T = typename vtype::type_t>
110+
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b);
111+
109112
#endif // XSS_COMMON_INCLUDES

src/xss-common-qsort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ X86_SIMD_SORT_INLINE arrsize_t move_nans_to_end_of_array(T *arr, arrsize_t size)
136136
return size - count - 1;
137137
}
138138

139-
template <typename vtype, typename T = typename vtype::type_t>
139+
template <typename vtype, typename T>
140140
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b)
141141
{
142142
return a < b;

src/xss-pivot-selection.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ type_t next_value(type_t value){
3737
template <typename vtype, typename mm_t>
3838
X86_SIMD_SORT_INLINE void COEX(mm_t &a, mm_t &b);
3939

40-
template <typename vtype, typename T>
41-
X86_SIMD_SORT_INLINE bool comparison_func(const T &a, const T &b);
42-
4340
template <typename vtype, typename type_t>
4441
X86_SIMD_SORT_INLINE type_t get_pivot(type_t *arr,
4542
const arrsize_t left,

0 commit comments

Comments
 (0)