diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-24 09:55:53 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-24 09:55:53 +0200 |
commit | 83f1b747e7016827ff737497b68be7229bde55c2 (patch) | |
tree | 58747c774f45c0b772a30f231abbdc62b625b905 /Eigen/src/Core | |
parent | 0a42f8c8761e76de8def6d3cca8b72368c31cbbc (diff) |
Fixed MSVC cpuid.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index e64190874..1fc0a6ccf 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -595,9 +595,8 @@ public: # define EIGEN_CPUID(abcd,func,id) \ __asm__ __volatile__ ("cpuid": "=a" (abcd[0]), "=b" (abcd[1]), "=c" (abcd[2]), "=d" (abcd[3]) : "a" (func), "c" (id) ); # endif -// TODO fix MSVC cpuid -// #elif defined(_MSC_VER) -// # define EIGEN_CPUID(abcd,func) __cpuid((int*)abcd,func) +#elif defined(_MSC_VER) +# define EIGEN_CPUID(abcd,func,id) __cpuidex((int*)abcd,func,id) #endif #ifdef EIGEN_CPUID |