From 8566ef805b034df4b017b594c1414e96e20e696a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 16 Aug 2010 09:38:49 +0200 Subject: remove the aligned bit flag for non vectorizable types --- Eigen/src/Core/util/XprHelper.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'Eigen/src/Core/util/XprHelper.h') diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index 3c89a7f3f..61ffe702f 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -119,21 +119,11 @@ class ei_compute_matrix_flags enum { row_major_bit = Options&RowMajor ? RowMajorBit : 0, is_dynamic_size_storage = MaxRows==Dynamic || MaxCols==Dynamic, -#if EIGEN_ALIGN_STATICALLY - is_fixed_size_aligned - = (!is_dynamic_size_storage) && (((MaxCols*MaxRows) % ei_packet_traits::size) == 0), -#else - is_fixed_size_aligned = 0, -#endif -#if EIGEN_ALIGN - is_dynamic_size_aligned = is_dynamic_size_storage, -#else - is_dynamic_size_aligned = 0, -#endif aligned_bit = ( - ((Options&DontAlign)==0) + ((Options&DontAlign)==0) + && ei_packet_traits::Vectorizable && ( #if EIGEN_ALIGN_STATICALLY ((!is_dynamic_size_storage) && (((MaxCols*MaxRows) % ei_packet_traits::size) == 0)) -- cgit v1.2.3