mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Packet must be passed by const reference and not by value to avoid alignment issue.
This commit is contained in:
parent
36c9d08274
commit
20cac72b82
@ -166,7 +166,7 @@ class BlasLinearMapper {
|
|||||||
return ploadt<HalfPacket, AlignmentType>(m_data + i);
|
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);
|
pstoret<Scalar, Packet, AlignmentType>(m_data + i, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user