4 ms·
32-bit integer division is slower than 64-bit float division, so it’s not that. CPU manufacturers just optimise one way more than the other. https://uops.info/
by throw235346 2mo ago
32-bit integer division is slower than 64-bit float division, so it’s not that. CPU manufacturers just optimise one way more than the other.
https://uops.info/html-instr/IDIV_R32.html https://uops.info/html-instr/IDIV_R32.html
https://uops.info/html-instr/DIVSD_XMM_XMM.html https://uops.info/html-instr/DIVSD_XMM_XMM.html