3 ms·
Agner's table[1] for Intel IceLake/TigerLake shows FDIV to have higher latency, but slightly better throughput. For latency: - DIV/IDIV r32: 12 cycles - DIV/
by Genbox 2mo ago
Agner's table[1] for Intel IceLake/TigerLake shows FDIV to have higher latency, but slightly better throughput.
For latency:
- DIV/IDIV r32: 12 cycles
- DIV/IDIV r64: 15 cycles
- FDIV: 14–16 cycles
Throughput:
- DIV/IDIV r32: 6 cycles
- DIV/IDIV r64: 10 cycles
- FDIV: 4–5 cycles
I didn't check for a more recent CPU.
[1] https://www.agner.org/optimize/instruction_tables.pdf https://www.agner.org/optimize/instruction_tables.pdf page 366 & 369
- deleted 2mo ago[deleted]
- brewmarche 2mo agoDIVSD latency 13–14 cycles, reciprocal throughput 4 cycles Use this instead of x87’s FDIV