mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-01 01:32:00 +08:00
fix bug #242: vectorization was wrongly enabled on MSVC 2005
This commit is contained in:
parent
e48bc0dfe3
commit
67d50f539b
12
Eigen/Core
12
Eigen/Core
@ -51,16 +51,16 @@
|
|||||||
#define EIGEN_SSE2_ON_MSVC_2008_OR_LATER
|
#define EIGEN_SSE2_ON_MSVC_2008_OR_LATER
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#else
|
||||||
|
// Remember that usage of defined() in a #define is undefined by the standard
|
||||||
// Remember that usage of defined() in a #define is undefined by the standard
|
#if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )
|
||||||
#if (defined __SSE2__) && ( (!defined __GNUC__) || EIGEN_GNUC_AT_LEAST(4,2) )
|
#define EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC
|
||||||
#define EIGEN_SSE2_BUT_NOT_OLD_GCC
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef EIGEN_DONT_VECTORIZE
|
#ifndef EIGEN_DONT_VECTORIZE
|
||||||
|
|
||||||
#if defined (EIGEN_SSE2_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER)
|
#if defined (EIGEN_SSE2_ON_NON_MSVC_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER)
|
||||||
|
|
||||||
// Defines symbols for compile-time detection of which instructions are
|
// Defines symbols for compile-time detection of which instructions are
|
||||||
// used.
|
// used.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user