diff options
author | 2016-01-14 16:58:01 -0800 | |
---|---|---|
committer | 2016-01-14 16:58:01 -0800 | |
commit | 3cfd16f3af436e6f5be2a0ea99262d8f9d768e0e (patch) | |
tree | 25f503f12d988cc5aa02ce87ab299fdc41b46918 /Eigen | |
parent | 67f44365ea6d36c3461e62ea16656d5d00f6df2d (diff) |
Fixed the signature of the plset primitives for AVX512
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/arch/AVX512/PacketMath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/AVX512/PacketMath.h b/Eigen/src/Core/arch/AVX512/PacketMath.h index 596de0ce4..af3109a7b 100644 --- a/Eigen/src/Core/arch/AVX512/PacketMath.h +++ b/Eigen/src/Core/arch/AVX512/PacketMath.h @@ -136,14 +136,14 @@ EIGEN_STRONG_INLINE Packet8d pload1<Packet8d>(const double* from) { } template <> -EIGEN_STRONG_INLINE Packet16f plset<float>(const float& a) { +EIGEN_STRONG_INLINE Packet16f plset<Packet16f>(const float& a) { return _mm512_add_ps( _mm512_set1_ps(a), _mm512_set_ps(15.0f, 14.0f, 13.0f, 12.0f, 11.0f, 10.0f, 9.0f, 8.0f, 7.0f, 6.0f, 5.0f, 4.0f, 3.0f, 2.0f, 1.0f, 0.0f)); } template <> -EIGEN_STRONG_INLINE Packet8d plset<double>(const double& a) { +EIGEN_STRONG_INLINE Packet8d plset<Packet8d>(const double& a) { return _mm512_add_pd(_mm512_set1_pd(a), _mm512_set_pd(7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0)); } |