mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 14:53:13 +08:00
Use pmsub in twoprod. This speeds up pow() on Skylake by ~1%.
This commit is contained in:
parent
ce62177b5b
commit
6bcd941ee3
@ -1248,7 +1248,7 @@ EIGEN_STRONG_INLINE
|
|||||||
void twoprod(const Packet& x, const Packet& y,
|
void twoprod(const Packet& x, const Packet& y,
|
||||||
Packet& p_hi, Packet& p_lo) {
|
Packet& p_hi, Packet& p_lo) {
|
||||||
p_hi = pmul(x, y);
|
p_hi = pmul(x, y);
|
||||||
p_lo = pmadd(x, y, pnegate(p_hi));
|
p_lo = pmsub(x, y, p_hi);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user