Fix unaligned loads in ploadLhs & ploadRhs for P8.

This commit is contained in:
Chip-Kerchner 2021-08-16 20:26:50 -05:00
parent 7e6f94961c
commit 8dcf3e38ba
2 changed files with 2 additions and 2 deletions

View File

@ -1113,7 +1113,7 @@ EIGEN_ALWAYS_INLINE void pgerc(PacketBlock<Packet,N>* accReal, PacketBlock<Packe
template<typename Scalar, typename Packet>
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.

View File

@ -214,7 +214,7 @@ EIGEN_ALWAYS_INLINE void bcouple_common<Packet2d, Packet1cd>(PacketBlock<Packet2
template<typename Scalar, typename Packet>
EIGEN_ALWAYS_INLINE Packet ploadRhs(const Scalar* rhs)
{
return *reinterpret_cast<Packet *>(const_cast<Scalar *>(rhs));
return ploadu<Packet>(rhs);
}
} // end namespace internal