Skip to content

Commit

Permalink
Harmonize return type of bitofsign and signbit between scalar and vec…
Browse files Browse the repository at this point in the history
…tor version
  • Loading branch information
serge-sans-paille committed Apr 16, 2024
1 parent 7eb009b commit 9ef1d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/xsimd/arch/xsimd_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,13 @@ namespace xsimd
}

template <class T, class = typename std::enable_if<std::is_scalar<T>::value>::type>
<<<<<<< Updated upstream
inline bool bitofsign(T const& x) noexcept
=======
XSIMD_INLINE T bitofsign(T const& x) noexcept
>>>>>>> Stashed changes
{
return x < T(0);
return T(x < T(0));
}

template <class T>
Expand Down

0 comments on commit 9ef1d4c

Please sign in to comment.