mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-12 14:25:16 +08:00
Added pdiv packet primitives for avx512
This commit is contained in:
parent
5e89ded685
commit
d7b75e8d86
@ -208,6 +208,17 @@ EIGEN_STRONG_INLINE Packet8d pmul<Packet8d>(const Packet8d& a,
|
|||||||
return _mm512_mul_pd(a, b);
|
return _mm512_mul_pd(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
EIGEN_STRONG_INLINE Packet16f pdiv<Packet16f>(const Packet16f& a,
|
||||||
|
const Packet16f& b) {
|
||||||
|
return _mm512_div_ps(a, b);
|
||||||
|
}
|
||||||
|
template <>
|
||||||
|
EIGEN_STRONG_INLINE Packet8d pdiv<Packet8d>(const Packet8d& a,
|
||||||
|
const Packet8d& b) {
|
||||||
|
return _mm512_div_pd(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __FMA__
|
#ifdef __FMA__
|
||||||
template <>
|
template <>
|
||||||
EIGEN_STRONG_INLINE Packet16f pmadd(const Packet16f& a, const Packet16f& b,
|
EIGEN_STRONG_INLINE Packet16f pmadd(const Packet16f& a, const Packet16f& b,
|
||||||
|
Loading…
Reference in New Issue
Block a user