mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 14:53:13 +08:00
optimize equalspace packetop
This commit is contained in:
parent
2004831941
commit
6d3e3678b4
@ -161,8 +161,8 @@ struct equalspaced_op {
|
|||||||
const Packet cst_lin0 = plset<Packet>(Scalar(0));
|
const Packet cst_lin0 = plset<Packet>(Scalar(0));
|
||||||
const Packet cst_offset = pmadd(cst_lin0, cst_step, cst_start);
|
const Packet cst_offset = pmadd(cst_lin0, cst_step, cst_start);
|
||||||
|
|
||||||
Packet istep = pset1<Packet>(static_cast<Scalar>(i) * m_step);
|
Packet i_packet = pset1<Packet>(static_cast<Scalar>(i));
|
||||||
return padd(cst_offset, istep);
|
return pmadd(i_packet, cst_step, cst_offset);
|
||||||
}
|
}
|
||||||
const Scalar m_start;
|
const Scalar m_start;
|
||||||
const Scalar m_step;
|
const Scalar m_step;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user