aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/ProductEvaluators.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-08-07 10:44:01 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-08-07 10:44:01 +0200
commitce57dbd937ca250863d4d52f3d0940d57551a25c (patch)
tree39f15bd3db545a9e52d88ba48c37ddb6083f7ade /Eigen/src/Core/ProductEvaluators.h
parent2afdef6a54e7fd09a4a6d5e933cf15ffa129beb6 (diff)
Let unpacket_traits<> exposes the required alignment and make use of it everywhere
Diffstat (limited to 'Eigen/src/Core/ProductEvaluators.h')
-rwxr-xr-xEigen/src/Core/ProductEvaluators.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h
index 1f5d7addd..b24d54ef9 100755
--- a/Eigen/src/Core/ProductEvaluators.h
+++ b/Eigen/src/Core/ProductEvaluators.h
@@ -433,8 +433,8 @@ struct product_evaluator<Product<Lhs, Rhs, LazyProduct>, ProductTag, DenseShape,
LhsAlignment = LhsEtorType::Alignment,
RhsAlignment = RhsEtorType::Alignment,
- LhsIsAligned = int(LhsAlignment) >= int(sizeof(Scalar)*PacketSize), // FIXME compare to required alignment
- RhsIsAligned = int(RhsAlignment) >= int(sizeof(Scalar)*PacketSize),
+ LhsIsAligned = int(LhsAlignment) >= int(unpacket_traits<PacketScalar>::alignment),
+ RhsIsAligned = int(RhsAlignment) >= int(unpacket_traits<PacketScalar>::alignment),
LhsRowMajor = LhsFlags & RowMajorBit,
RhsRowMajor = RhsFlags & RowMajorBit,