Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wjr-z committed Aug 5, 2024
1 parent efc6984 commit 8790be4
Show file tree
Hide file tree
Showing 6 changed files with 3,853 additions and 3,687 deletions.
4 changes: 2 additions & 2 deletions include/wjr/x86/math/large-compare-impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ WJR_PURE int large_builtin_compare_n(const T *src0, const T *src1, size_t n) noe

WJR_ASSUME(n > 2);

WJR_REGISTER_NORMAL_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_SIMD_FUNCTION(
n, WJR_REGISTER_COMPARE_NOT_N_2, WJR_REGISTER_COMPARE_NOT_N_4, WJR_HAS_SIMD(AVX2),
WJR_REGISTER_COMPARE_NOT_N_ADVANCE, , WJR_REGISTER_COMPARE_NOT_N_RET);

Expand Down Expand Up @@ -220,7 +220,7 @@ WJR_PURE int large_builtin_reverse_compare_n(const T *src0, const T *src1,

WJR_ASSUME(n > 2);

WJR_REGISTER_NORMAL_REVERSE_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_REVERSE_SIMD_FUNCTION(
n, WJR_REGISTER_REVERSE_COMPARE_NOT_N_2, WJR_REGISTER_REVERSE_COMPARE_NOT_N_4,
WJR_HAS_SIMD(AVX2), WJR_REGISTER_REVERSE_COMPARE_NOT_N_ADVANCE, ,
WJR_REGISTER_REVERSE_COMPARE_NOT_N_RET);
Expand Down
8 changes: 4 additions & 4 deletions include/wjr/x86/math/large-find-impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ WJR_PURE size_t large_builtin_find_not_n(const T *src0, const T *src1,

#define WJR_REGISTER_FIND_NOT_N_RET(index) index

WJR_REGISTER_NORMAL_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_SIMD_FUNCTION(
n, WJR_REGISTER_FIND_NOT_N_2, WJR_REGISTER_FIND_NOT_N_4, WJR_HAS_SIMD(AVX2),
WJR_REGISTER_FIND_NOT_N_ADVNCE, const auto __src0 = src0,
WJR_REGISTER_FIND_NOT_N_RET);
Expand Down Expand Up @@ -181,7 +181,7 @@ WJR_PURE size_t large_builtin_find_not_n(const T *src, T val, size_t n) noexcept
const auto y4 = broadcast<__m128i_t, __m256i_t>(y2);
#endif

WJR_REGISTER_NORMAL_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_SIMD_FUNCTION(
n, WJR_REGISTER_FIND_NOT_N_2, WJR_REGISTER_FIND_NOT_N_4, WJR_HAS_SIMD(AVX2),
WJR_REGISTER_FIND_NOT_N_ADVANCE, const auto __src = src,
WJR_REGISTER_FIND_NOT_N_RET);
Expand Down Expand Up @@ -307,7 +307,7 @@ WJR_PURE size_t large_builtin_reverse_find_not_n(const T *src0, const T *src1,

#define WJR_REGISTER_REVERSE_FIND_NOT_N_RET(index) 0

WJR_REGISTER_NORMAL_REVERSE_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_REVERSE_SIMD_FUNCTION(
n, WJR_REGISTER_REVERSE_FIND_NOT_N_2, WJR_REGISTER_REVERSE_FIND_NOT_N_4,
WJR_HAS_SIMD(AVX2), WJR_REGISTER_REVERSE_FIND_NOT_N_ADVANCE, ,
WJR_REGISTER_REVERSE_FIND_NOT_N_RET);
Expand Down Expand Up @@ -430,7 +430,7 @@ WJR_PURE size_t large_builtin_reverse_find_not_n(const T *src, T val, size_t n)
const auto y4 = broadcast<__m128i_t, __m256i_t>(y2);
#endif

WJR_REGISTER_NORMAL_REVERSE_SIMD_FUNCTION(
WJR_REGISTER_X86_NORMAL_REVERSE_SIMD_FUNCTION(
n, WJR_REGISTER_REVERSE_FIND_NOT_N_2, WJR_REGISTER_REVERSE_FIND_NOT_N_4,
WJR_HAS_SIMD(AVX2), WJR_REGISTER_REVERSE_FIND_NOT_N_ADVANCE, ,
WJR_REGISTER_REVERSE_FIND_NOT_N_RET);
Expand Down
Loading

0 comments on commit 8790be4

Please sign in to comment.