From e617711306745e9c5e3fe8a060373867102ecc4d Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 24 May 2016 06:43:58 -0700 Subject: [PATCH] Don't attempt to use MMX instructions with visualstudio since they're only partially supported. --- Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 2 +- Eigen/src/Core/arch/CUDA/TypeCasting.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index 1584c40bd..017d47a88 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -547,7 +547,7 @@ ptranspose(PacketBlock& kernel) { } -#elif defined EIGEN_VECTORIZE_SSE +#elif defined EIGEN_VECTORIZE_SSE && !EIGEN_COMP_MSVC typedef struct { __m64 x; diff --git a/Eigen/src/Core/arch/CUDA/TypeCasting.h b/Eigen/src/Core/arch/CUDA/TypeCasting.h index 5371f6f17..45c75cf52 100644 --- a/Eigen/src/Core/arch/CUDA/TypeCasting.h +++ b/Eigen/src/Core/arch/CUDA/TypeCasting.h @@ -133,7 +133,7 @@ template<> EIGEN_STRONG_INLINE Packet8h pcast(const Packet8f return float2half(a); } -#elif defined EIGEN_VECTORIZE_SSE +#elif defined EIGEN_VECTORIZE_SSE && !EIGEN_COMP_MSVC template <> struct type_casting_traits { enum {