Fix #1874: it works on both MSVC 2017 and other platforms.

This commit is contained in:
Kan Chen 2020-05-21 18:42:56 +08:00
parent 2d67af2d2b
commit 4e7046063b

View File

@ -2679,9 +2679,9 @@ struct gemm_pack_rhs<Scalar, Index, DataMapper, nr, RowMajor, Conjugate, PanelMo
typedef typename DataMapper::LinearMapper LinearMapper;
enum { PacketSize = packet_traits<Scalar>::size,
HalfPacketSize = unpacket_traits<HalfPacket>::size,
QuarterPacketSize = unpacket_traits<QuarterPacket>::size,
HasHalf = (int)HalfPacketSize < (int)PacketSize,
HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize };
QuarterPacketSize = unpacket_traits<QuarterPacket>::size};
bool HasHalf = (int)HalfPacketSize < (int)PacketSize;
bool HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize;
EIGEN_DONT_INLINE void operator()(Scalar* blockB, const DataMapper& rhs, Index depth, Index cols, Index stride=0, Index offset=0)
{
EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK RHS ROWMAJOR");