From 7ed9441ea472031bb9357b5bec80151cae7ed2cb Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 18 Feb 2014 18:06:44 -0800 Subject: Reverted the definition of the EIGEN_ALIGN to its former meaning (i.e. a boolean) Created a new EIGEN_ALIGN_BYTES define to encode how the data should be aligned Fixed a few remaining alignment issues exposed when the Eigen code is compiled with avx enabled. Created a new EIGEN_ALIGN_DEFAULT define, which is set to the minimum alignment value required for the chosen instruction set. Use this value instead of EIGEN_ALIGN32 to preserve the existing alignment on SSE/Altivec/Neon. --- Eigen/src/Core/DenseStorage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/DenseStorage.h') diff --git a/Eigen/src/Core/DenseStorage.h b/Eigen/src/Core/DenseStorage.h index 2342b08a1..7264b44c7 100644 --- a/Eigen/src/Core/DenseStorage.h +++ b/Eigen/src/Core/DenseStorage.h @@ -40,7 +40,7 @@ void check_static_allocation_size() */ template struct plain_array { @@ -81,7 +81,7 @@ struct plain_array #endif template -struct plain_array +struct plain_array { EIGEN_USER_ALIGN32 T array[Size]; -- cgit v1.2.3