mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
work around the braindead msvc preprocessor
This commit is contained in:
parent
11c8a6bf63
commit
dd139b92b4
@ -13,7 +13,7 @@
|
||||
|
||||
#ifndef EIGEN_DONT_VECTORIZE
|
||||
#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))
|
||||
#define EIGEN_HAVE_MSVC_SSE2 ((defined(_M_IX86_FP)) && (_M_IX86_FP >= 2)) // the parentheses around defined are really needed by MSVC
|
||||
#if (EIGEN_HAVE__SSE2__BUT_NOT_OLD_GCC || EIGEN_HAVE_MSVC_SSE2)
|
||||
#define EIGEN_VECTORIZE
|
||||
#define EIGEN_VECTORIZE_SSE
|
||||
|
Loading…
x
Reference in New Issue
Block a user