diff --git a/include/eve/detail/function/simd/arm/sve/to_logical.hpp b/include/eve/detail/function/simd/arm/sve/to_logical.hpp index 6570791ba6..58260b0ec8 100644 --- a/include/eve/detail/function/simd/arm/sve/to_logical.hpp +++ b/include/eve/detail/function/simd/arm/sve/to_logical.hpp @@ -15,10 +15,10 @@ namespace eve::detail { -template -EVE_FORCEINLINE auto -to_logical(wide const& v) noexcept requires sve_abi> -{ - return v != 0; -} + template + EVE_FORCEINLINE logical> to_logical(wide v) noexcept + requires sve_abi> + { + return v != 0; + } } diff --git a/include/eve/detail/function/simd/ppc/to_logical.hpp b/include/eve/detail/function/simd/ppc/to_logical.hpp index 511e45ff6a..79295c1001 100644 --- a/include/eve/detail/function/simd/ppc/to_logical.hpp +++ b/include/eve/detail/function/simd/ppc/to_logical.hpp @@ -17,7 +17,7 @@ namespace eve::detail // Wide to Logical //================================================================================================ template - EVE_FORCEINLINE as_logical_t> to_logical( wide const& v ) noexcept + EVE_FORCEINLINE as_logical_t> to_logical(wide v) noexcept requires ppc_abi> { return as_logical_t>(vec_cmpne(v.storage(), wide{0}.storage())); diff --git a/include/eve/detail/function/simd/riscv/to_logical.hpp b/include/eve/detail/function/simd/riscv/to_logical.hpp index 7658a20d52..0c9686b8fd 100644 --- a/include/eve/detail/function/simd/riscv/to_logical.hpp +++ b/include/eve/detail/function/simd/riscv/to_logical.hpp @@ -15,12 +15,10 @@ namespace eve::detail { -template -EVE_FORCEINLINE auto -to_logical(wide const& v) noexcept -requires rvv_abi> -{ - return v != static_cast(0); -} - + template + EVE_FORCEINLINE logical> to_logical(wide v) noexcept + requires rvv_abi> + { + return v != static_cast(0); + } }