mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user