2 ms·
Floating-point division requires 53 bits instead of 64 bits for integers. A lot of the increased latency comes from the wider datatypes.
by jcranmer 2mo ago
Floating-point division requires 53 bits instead of 64 bits for integers. A lot of the increased latency comes from the wider datatypes.
- throw235346 2mo ago32-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