Packet must be passed by const reference and not by value to avoid alignment issue.

This commit is contained in:
Gael Guennebaud 2015-02-17 22:58:32 +01:00
parent 36c9d08274
commit 20cac72b82

View File

@ -166,7 +166,7 @@ class BlasLinearMapper {
return ploadt<HalfPacket, AlignmentType>(m_data + i);
}
EIGEN_ALWAYS_INLINE void storePacket(Index i, Packet p) const {
EIGEN_ALWAYS_INLINE void storePacket(Index i, const Packet &p) const {
pstoret<Scalar, Packet, AlignmentType>(m_data + i, p);
}