Skip to content

Commit 9afce96

Browse files
riscv
1 parent 34b6bec commit 9afce96

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ namespace xsimd
13351335
std::make_tuple(wrap::vminq_u8, wrap::vminq_s8, wrap::vminq_u16, wrap::vminq_s16,
13361336
wrap::vminq_u32, wrap::vminq_s32, wrap::vminq_f32)
13371337
};
1338-
return dispatcher.apply(register_type(lhs), register_type(rhs));
1338+
return dispatcher.apply(register_type(rhs), register_type(lhs));
13391339
}
13401340

13411341
template <class A, class T, detail::enable_sized_integral_t<T, 8> = 0>

include/xsimd/arch/xsimd_neon64.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ namespace xsimd
584584
template <class A>
585585
XSIMD_INLINE batch<double, A> min(batch<double, A> const& lhs, batch<double, A> const& rhs, requires_arch<neon64>) noexcept
586586
{
587-
return vminq_f64(lhs, rhs);
587+
return vminq_f64(rhs, lhs);
588588
}
589589

590590
/*******
@@ -594,7 +594,7 @@ namespace xsimd
594594
template <class A>
595595
XSIMD_INLINE batch<double, A> max(batch<double, A> const& lhs, batch<double, A> const& rhs, requires_arch<neon64>) noexcept
596596
{
597-
return vmaxq_f64(lhs, rhs);
597+
return vmaxq_f64(rhs, lhs);
598598
}
599599

600600
/*******

include/xsimd/arch/xsimd_rvv.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,14 +742,14 @@ namespace xsimd
742742
template <class A, class T, detail::rvv_enable_all_t<T> = 0>
743743
XSIMD_INLINE batch<T, A> max(batch<T, A> const& lhs, batch<T, A> const& rhs, requires_arch<rvv>) noexcept
744744
{
745-
return detail::rvvmax(lhs, rhs);
745+
return detail::rvvmax(rhs, lhs);
746746
}
747747

748748
// min
749749
template <class A, class T, detail::rvv_enable_all_t<T> = 0>
750750
XSIMD_INLINE batch<T, A> min(batch<T, A> const& lhs, batch<T, A> const& rhs, requires_arch<rvv>) noexcept
751751
{
752-
return detail::rvvmin(lhs, rhs);
752+
return detail::rvvmin(rhs, lhs);
753753
}
754754

755755
// neg

0 commit comments

Comments
 (0)