diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-10-24 10:21:41 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-10-24 10:21:41 +0200 |
commit | 138897cc065e7acd2fac56b17faf5c0806f86684 (patch) | |
tree | f25e929754f4819ea589938381ef2ceb27b7e8c9 /Eigen | |
parent | 9b418afff6b55842f0d996eea879eea7289081f9 (diff) |
fix bug #521: __cpuidex is not available on all architectures supported by MSVC
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index dd48a4a87..69148703e 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -745,7 +745,7 @@ public: __asm__ __volatile__ ("cpuid": "=a" (abcd[0]), "=b" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id) ); # endif # elif defined(_MSC_VER) -# if (_MSC_VER > 1500) +# if (_MSC_VER > 1500) && ( defined(_M_IX86) || defined(_M_X64) ) # define EIGEN_CPUID(abcd,func,id) __cpuidex((int*)abcd,func,id) # endif # endif |