aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-03 13:50:56 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-05-03 13:50:56 +0000
commit95bda5e6ab6c2bdad322bd772dc7fb9e14ca7d78 (patch)
tree4fd1e6492007da0c938b5a7fa31d1b69eb088fd5 /Eigen/Core
parentfacee57b8d0f8343cb9b7d7db3ad5e454bc80915 (diff)
let the user disable alignment altogether by #defining EIGEN_DONT_ALIGN.
Until now, the user had to edit the source code to do that. Internally, add EIGEN_ALIGN that takes into account both EIGEN_DONT_ALIGN.and EIGEN_ARCH_WANTS_ALIGNMENT. From now on, only EIGEN_ALIGN should be used to test whether we want to align.
Diffstat (limited to 'Eigen/Core')
-rw-r--r--Eigen/Core4
1 files changed, 4 insertions, 0 deletions
diff --git a/Eigen/Core b/Eigen/Core
index 904c6089b..ecade0128 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -27,6 +27,10 @@
#define EIGEN_SSE2_BUT_NOT_OLD_GCC
#endif
+#ifdef EIGEN_DONT_ALIGN
+ #define EIGEN_DONT_VECTORIZE
+#endif
+
#ifndef EIGEN_DONT_VECTORIZE
#if defined (EIGEN_SSE2_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER)
#define EIGEN_VECTORIZE