mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Fix unaligned loads in ploadLhs & ploadRhs for P8.
This commit is contained in:
parent
7e6f94961c
commit
8dcf3e38ba
@ -1113,7 +1113,7 @@ EIGEN_ALWAYS_INLINE void pgerc(PacketBlock<Packet,N>* accReal, PacketBlock<Packe
|
|||||||
template<typename Scalar, typename Packet>
|
template<typename Scalar, typename Packet>
|
||||||
EIGEN_ALWAYS_INLINE Packet ploadLhs(const Scalar* lhs)
|
EIGEN_ALWAYS_INLINE Packet ploadLhs(const Scalar* lhs)
|
||||||
{
|
{
|
||||||
return *reinterpret_cast<Packet *>(const_cast<Scalar *>(lhs));
|
return ploadu<Packet>(lhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zero the accumulator on PacketBlock.
|
// Zero the accumulator on PacketBlock.
|
||||||
|
@ -214,7 +214,7 @@ EIGEN_ALWAYS_INLINE void bcouple_common<Packet2d, Packet1cd>(PacketBlock<Packet2
|
|||||||
template<typename Scalar, typename Packet>
|
template<typename Scalar, typename Packet>
|
||||||
EIGEN_ALWAYS_INLINE Packet ploadRhs(const Scalar* rhs)
|
EIGEN_ALWAYS_INLINE Packet ploadRhs(const Scalar* rhs)
|
||||||
{
|
{
|
||||||
return *reinterpret_cast<Packet *>(const_cast<Scalar *>(rhs));
|
return ploadu<Packet>(rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
Loading…
Reference in New Issue
Block a user