Skip to content

Commit 135c1d3

Browse files
committed
Add missing inline
1 parent 7c9611e commit 135c1d3

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

include/xsimd/arch/xsimd_rvv.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,12 @@ namespace xsimd
369369
using as_float_relaxed_t = typename as_float_relaxed<sizeof(T)>::type;
370370

371371
template <class T, class U>
372-
rvv_reg_t<T, U::width> rvvreinterpret(U const& arg) noexcept
372+
XSIMD_INLINE rvv_reg_t<T, U::width> rvvreinterpret(U const& arg) noexcept
373373
{
374374
return rvv_reg_t<T, U::width>(arg, types::detail::XSIMD_RVV_BITCAST);
375375
}
376376
template <class T, class A, class U>
377-
rvv_reg_t<T, A::width> rvvreinterpret(batch<U, A> const& arg) noexcept
377+
XSIMD_INLINE rvv_reg_t<T, A::width> rvvreinterpret(batch<U, A> const& arg) noexcept
378378
{
379379
typename batch<U, A>::register_type r = arg;
380380
return rvvreinterpret<T>(r);
@@ -519,23 +519,23 @@ namespace xsimd
519519
XSIMD_RVV_OVERLOAD(rvvget_hi_, (__riscv_vget_ XSIMD_RVV_TSM), _DROP_1ST_CUSTOM_ARGS_NOVL, vec(T, wide_vec), args..., 1)
520520

521521
template <class T, size_t W, std::enable_if_t<W >= types::detail::rvv_width_m1, int> = 0>
522-
rvv_reg_t<T, W> rvvget_lo(rvv_reg_t<T, W * 2> const& vv) noexcept
522+
XSIMD_INLINE rvv_reg_t<T, W> rvvget_lo(rvv_reg_t<T, W * 2> const& vv) noexcept
523523
{
524524
typename rvv_reg_t<T, W>::register_type tmp = rvvget_lo_(T {}, vv);
525525
return tmp;
526526
}
527527
template <class T, size_t W, std::enable_if_t<W >= types::detail::rvv_width_m1, int> = 0>
528-
rvv_reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
528+
XSIMD_INLINE rvv_reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
529529
{
530530
typename rvv_reg_t<T, W>::register_type tmp = rvvget_hi_(T {}, vv);
531531
return tmp;
532532
}
533-
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int> = 0> rvv_reg_t<T, W> rvvget_lo(rvv_reg_t<T, W * 2> const& vv) noexcept
533+
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int> = 0> XSIMD_INLINE rvv_reg_t<T, W> rvvget_lo(rvv_reg_t<T, W * 2> const& vv) noexcept
534534
{
535535
typename rvv_reg_t<T, W>::register_type tmp = vv;
536536
return tmp;
537537
}
538-
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int> = 0> rvv_reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
538+
template <class T, size_t W, std::enable_if_t<W<types::detail::rvv_width_m1, int> = 0> XSIMD_INLINE rvv_reg_t<T, W> rvvget_hi(rvv_reg_t<T, W * 2> const& vv) noexcept
539539
{
540540
return __riscv_vslidedown(vv, vv.vl / 2, vv.vl);
541541
}

include/xsimd/arch/xsimd_sve.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ namespace xsimd
3737
XSIMD_INLINE svbool_t sve_ptrue_impl(index<8>) noexcept { return svptrue_b64(); }
3838

3939
template <class T>
40-
svbool_t sve_ptrue() noexcept { return sve_ptrue_impl(index<sizeof(T)> {}); }
40+
XSIMD_INLINE svbool_t sve_ptrue() noexcept { return sve_ptrue_impl(index<sizeof(T)> {}); }
4141

4242
// predicate loading
4343
template <bool M0, bool M1>
44-
svbool_t sve_pmask() noexcept { return svdupq_b64(M0, M1); }
44+
XSIMD_INLINE svbool_t sve_pmask() noexcept { return svdupq_b64(M0, M1); }
4545
template <bool M0, bool M1, bool M2, bool M3>
46-
svbool_t sve_pmask() noexcept { return svdupq_b32(M0, M1, M2, M3); }
46+
XSIMD_INLINE svbool_t sve_pmask() noexcept { return svdupq_b32(M0, M1, M2, M3); }
4747
template <bool M0, bool M1, bool M2, bool M3, bool M4, bool M5, bool M6, bool M7>
48-
svbool_t sve_pmask() noexcept { return svdupq_b16(M0, M1, M2, M3, M4, M5, M6, M7); }
48+
XSIMD_INLINE svbool_t sve_pmask() noexcept { return svdupq_b16(M0, M1, M2, M3, M4, M5, M6, M7); }
4949
template <bool M0, bool M1, bool M2, bool M3, bool M4, bool M5, bool M6, bool M7,
5050
bool M8, bool M9, bool M10, bool M11, bool M12, bool M13, bool M14, bool M15>
51-
svbool_t sve_pmask() noexcept { return svdupq_b8(M0, M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15); }
51+
XSIMD_INLINE svbool_t sve_pmask() noexcept { return svdupq_b8(M0, M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15); }
5252

5353
// count active lanes in a predicate
5454
XSIMD_INLINE uint64_t sve_pcount_impl(svbool_t p, index<1>) noexcept { return svcntp_b8(p, p); }

0 commit comments

Comments
 (0)