From c1a42c2d0d8e789ca9d2223309eaff5eaaa40c02 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 14 Jan 2016 17:21:39 -0800 Subject: Don't disable the AVX implementations of plset when compiling with AVX512 enabled --- Eigen/src/Core/arch/AVX/PacketMath.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Eigen/src/Core/arch') diff --git a/Eigen/src/Core/arch/AVX/PacketMath.h b/Eigen/src/Core/arch/AVX/PacketMath.h index 977910ca2..5ec325fce 100644 --- a/Eigen/src/Core/arch/AVX/PacketMath.h +++ b/Eigen/src/Core/arch/AVX/PacketMath.h @@ -120,10 +120,8 @@ template<> EIGEN_STRONG_INLINE Packet8i pset1(const int& from) { re template<> EIGEN_STRONG_INLINE Packet8f pload1(const float* from) { return _mm256_broadcast_ss(from); } template<> EIGEN_STRONG_INLINE Packet4d pload1(const double* from) { return _mm256_broadcast_sd(from); } -#ifndef EIGEN_VECTORIZE_AVX512 template<> EIGEN_STRONG_INLINE Packet8f plset(const float& a) { return _mm256_add_ps(_mm256_set1_ps(a), _mm256_set_ps(7.0,6.0,5.0,4.0,3.0,2.0,1.0,0.0)); } template<> EIGEN_STRONG_INLINE Packet4d plset(const double& a) { return _mm256_add_pd(_mm256_set1_pd(a), _mm256_set_pd(3.0,2.0,1.0,0.0)); } -#endif template<> EIGEN_STRONG_INLINE Packet8f padd(const Packet8f& a, const Packet8f& b) { return _mm256_add_ps(a,b); } template<> EIGEN_STRONG_INLINE Packet4d padd(const Packet4d& a, const Packet4d& b) { return _mm256_add_pd(a,b); } -- cgit v1.2.3