From 38f501a596aeafe1d3ff680ae6d2226ea6ed0cd2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 5 Apr 2009 17:34:59 +0000 Subject: [PATCH] fix computation of aligned_bit (has been broken by the change of AutoAlign/DontAlign) --- Eigen/src/Core/util/XprHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index d78e3ea8c..857722b79 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -89,7 +89,7 @@ class ei_compute_matrix_flags inner_max_size = row_major_bit ? MaxCols : MaxRows, is_big = inner_max_size == Dynamic, is_packet_size_multiple = (Cols*Rows) % ei_packet_traits::size == 0, - aligned_bit = ((Options&AutoAlign) && (is_big || is_packet_size_multiple)) ? AlignedBit : 0, + aligned_bit = (((Options&DontAlign)==0) && (is_big || is_packet_size_multiple)) ? AlignedBit : 0, packet_access_bit = ei_packet_traits::size > 1 && aligned_bit ? PacketAccessBit : 0 };