diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-15 16:14:54 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-15 16:14:54 +0000 |
commit | 11c8a6bf63a8a47a8c079d7e04aff14047aab223 (patch) | |
tree | cb6aab3a383d586a82d95688f8e7539ca174d524 /Eigen | |
parent | 703951d5cd87805256b6f75a4cc210fa6d3023e2 (diff) |
Fix detection of SSE2 with MSVC.
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/Core | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/Core b/Eigen/Core index 3128f3198..08044f2ec 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -12,7 +12,9 @@ #endif #ifndef EIGEN_DONT_VECTORIZE - #if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) ) + #define EIGEN_HAVE__SSE2__BUT_NOT_OLD_GCC ((defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )) + #define EIGEN_HAVE_MSVC_SSE2 (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) + #if (EIGEN_HAVE__SSE2__BUT_NOT_OLD_GCC || EIGEN_HAVE_MSVC_SSE2) #define EIGEN_VECTORIZE #define EIGEN_VECTORIZE_SSE #include <emmintrin.h> |