diff options
author | 2008-12-15 15:54:33 +0000 | |
---|---|---|
committer | 2008-12-15 15:54:33 +0000 | |
commit | 703951d5cd87805256b6f75a4cc210fa6d3023e2 (patch) | |
tree | bd5232224f52d12b3b0310091150887a4653c0fe /Eigen/src/Core/util/Macros.h | |
parent | d11c8704e056af6a78ba181f244dc9ee5a885ae4 (diff) |
Fix memory alignment (hence vectorization) on MSVC thanks to help from Armin Berres.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 942af1e48..c95030524 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -108,6 +108,8 @@ using Eigen::ei_cos; #if (defined __GNUC__) #define EIGEN_ALIGN_128 __attribute__ ((aligned(16))) +#elif (defined _MSC_VER) +#define EIGEN_ALIGN_128 __declspec(align(16)) #else #define EIGEN_ALIGN_128 #endif |