From 85f9fab00365e21988a194c49883f3db7dacf1be Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 9 Feb 2011 14:01:26 -0500 Subject: [PATCH] back out changeset efdf2e405664163c685127aecec53a21977f8031 . It turns out that the SSE3 header is always included, even without any SSE enabled, so it was making us wrongly use SSE3 paths. Backing this out fixes msvc related crashes, at least bug #165. --- Eigen/Core | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Eigen/Core b/Eigen/Core index da84ca1bb..338dbe176 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -74,6 +74,7 @@ // there is no way to know about this on msvc. You can define EIGEN_VECTORIZE_SSE* if you // want to force the use of those instructions with msvc. #ifdef __SSE3__ + #error 'hello' #define EIGEN_VECTORIZE_SSE3 #endif #ifdef __SSSE3__ @@ -164,22 +165,6 @@ // required for __cpuid, needs to be included after cmath #if defined(_MSC_VER) && (defined(_M_IX86)||defined(_M_X64)) #include - // When available, intrin.h pulls in all SSE headers which allows us - // to check which SSE level is supported on MSVC systems - #ifndef EIGEN_DONT_VECTORIZE - #ifdef _INCLUDED_PMM - #define EIGEN_VECTORIZE_SSE3 - #endif - #ifdef _INCLUDED_TMM - #define EIGEN_VECTORIZE_SSSE3 - #endif - #ifdef _INCLUDED_SMM - #define EIGEN_VECTORIZE_SSE4_1 - #endif - #ifdef _INCLUDED_NMM - #define EIGEN_VECTORIZE_SSE4_2 - #endif - #endif #endif #if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(EIGEN_NO_EXCEPTIONS)