mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use pmsub in twoprod. This speeds up pow() on Skylake by ~1%.
This commit is contained in:
@@ -1248,7 +1248,7 @@ EIGEN_STRONG_INLINE
|
||||
void twoprod(const Packet& x, const Packet& y,
|
||||
Packet& p_hi, Packet& p_lo) {
|
||||
p_hi = pmul(x, y);
|
||||
p_lo = pmadd(x, y, pnegate(p_hi));
|
||||
p_lo = pmsub(x, y, p_hi);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user