Add dedicated implementations of predux_any for AVX512, NEON, and Altivec/VSE

This commit is contained in:
Gael Guennebaud
2019-01-09 16:40:42 +01:00
parent 3f14e0d19e
commit 47810cf5b7
3 changed files with 19 additions and 0 deletions

View File

@@ -720,6 +720,11 @@ template<> EIGEN_STRONG_INLINE int predux_max<Packet4i>(const Packet4i& a)
return pfirst(res);
}
template<> EIGEN_STRONG_INLINE bool predux_any(const Packet4f& x)
{
return vec_any_ne(x, pzero(x));
}
template<int Offset>
struct palign_impl<Offset,Packet4f>
{