Skip to content

Commit e550b4b

Browse files
Fix RiscV build
1 parent 384f6d4 commit e550b4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/xsimd/arch/xsimd_rvv.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ namespace xsimd
515515
return __riscv_vset(tmp, 1, hi);
516516
}
517517

518-
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int>::type = 0> D_INLINE rvv_reg_t<T, W * 2> rvvabut(rvv_reg_t<T, W> const& lo, rvv_reg_t<T, W> const& hi) noexcept
518+
template <class T, size_t W, std::enable_if_t<W < types::detail::rvv_width_m1, int> = 0>
519+
XSIMD_INLINE rvv_reg_t<T, W * 2> rvvabut(rvv_reg_t<T, W> const& lo, rvv_reg_t<T, W> const& hi) noexcept
519520
{
520521
return __riscv_vslideup(lo, hi, lo.vl, lo.vl * 2);
521522
}
@@ -540,7 +541,7 @@ namespace xsimd
540541
typename rvv_reg_t<T, W>::register_type tmp = vv;
541542
return tmp;
542543
}
543-
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int>::type = 0> reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
544+
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int> = 0> reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
544545
{
545546
return __riscv_vslidedown(vv, vv.vl / 2, vv.vl);
546547
}

0 commit comments

Comments
 (0)