You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/xsimd/arch/xsimd_altivec.hpp
+11-86Lines changed: 11 additions & 86 deletions
Original file line number
Diff line number
Diff line change
@@ -770,30 +770,18 @@ namespace xsimd
770
770
returnvec_rsqrt(val);
771
771
}
772
772
773
-
#if0
774
-
775
773
// select
776
-
template <class A>
777
-
XSIMD_INLINE batch<float, A> select(batch_bool<float, A> const& cond, batch<float, A> const& true_br, batch<float, A> const& false_br, requires_arch<altivec>) noexcept
template <class A, class T, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
774
+
template <classA, classT, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
783
775
XSIMD_INLINE batch<T, A> select(batch_bool<T, A> const& cond, batch<T, A> const& true_br, batch<T, A> const& false_br, requires_arch<altivec>) noexcept
template <class A, class T, bool... Values, class = typename std::enable_if<std::is_integral<T>::value, void>::type>
779
+
template <classA, classT, bool... Values, class = typename std::enable_if<std::is_scalar<T>::value, void>::type>
788
780
XSIMD_INLINE batch<T, A> select(batch_bool_constant<T, A, Values...> const&, batch<T, A> const& true_br, batch<T, A> const& false_br, requires_arch<altivec>) noexcept
789
781
{
790
782
returnselect(batch_bool<T, A> { Values... }, true_br, false_br, altivec {});
791
783
}
792
-
template <class A>
793
-
XSIMD_INLINE batch<double, A> select(batch_bool<double, A> const& cond, batch<double, A> const& true_br, batch<double, A> const& false_br, requires_arch<altivec>) noexcept
0 commit comments