aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-15 16:14:54 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-15 16:14:54 +0000
commit11c8a6bf63a8a47a8c079d7e04aff14047aab223 (patch)
treecb6aab3a383d586a82d95688f8e7539ca174d524 /Eigen
parent703951d5cd87805256b6f75a4cc210fa6d3023e2 (diff)
Fix detection of SSE2 with MSVC.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/Core4
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>