mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* Fix a couple of issues related to the recent cache friendly products
* Improve the efficiency of matrix*vector in unaligned cases * Trivial fixes in the destructors of MatrixStorage * Removed the matrixNorm in test/product.cpp (twice faster and that assumed the matrix product was ok while checking that !!)
This commit is contained in:
@@ -189,5 +189,14 @@ inline __m128i ei_preduxp(const __m128i* vecs)
|
||||
return _mm_add_epi32(tmp0, tmp2);
|
||||
}
|
||||
|
||||
#if (defined __GNUC__)
|
||||
template <> inline __m128 ei_pmadd(const __m128& a, const __m128& b, const __m128& c)
|
||||
{
|
||||
__m128 res = b;
|
||||
asm("mulps %[a], %[b] \n\taddps %[c], %[b]" : [b] "+x" (res) : [a] "x" (a), [c] "x" (c));
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // EIGEN_PACKET_MATH_SSE_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user