Gemv microoptimization

(cherry picked from commit d1b03fb5c91dcf0e48555bba8387201a0b1425d9)
This commit is contained in:
Charles Schlosser 2023-11-20 17:26:39 +00:00
parent 7c6020e424
commit 23886fd7db

View File

@ -359,9 +359,9 @@ EIGEN_DEVICE_FUNC EIGEN_DONT_INLINE void general_matrix_vector_product<Index,Lhs
HasQuarter = (int)ResPacketSizeQuarter < (int)ResPacketSizeHalf
};
const Index fullColBlockEnd = LhsPacketSize * (cols / LhsPacketSize);
const Index halfColBlockEnd = LhsPacketSizeHalf * (cols / LhsPacketSizeHalf);
const Index quarterColBlockEnd = LhsPacketSizeQuarter * (cols / LhsPacketSizeQuarter);
const Index fullColBlockEnd = cols & (-LhsPacketSize);
const Index halfColBlockEnd = cols & (-LhsPacketSizeHalf);
const Index quarterColBlockEnd = cols & (-LhsPacketSizeQuarter);
Index i=0;
for(; i<n8; i+=8)