3 ms·
You can think of "fused multiply-add" as an instruction that does two things at once, but I think of FMA more as a single operation these days. There's a critic
by klodolph 4y ago
You can think of "fused multiply-add" as an instruction that does two things at once, but I think of FMA more as a single operation these days. There's a critical difference in floating-point, where the result of FMA can be rounded, so you're not actually getting the same result as separate multiply + add.
- Findecanor 4y agoI suppose you meant to write that: a FMA instruction rounds only once at the end, but both the Multiply and Add instructions also round once each = total two times. BTW. Some MIPS processors did have a FMA instruction that did round twice. The compiler was thus able to fuse instructions without the code giving different results. This was deprecated in later versions, however.
- klodolph 4y agoI thought I did write that?
- vardump 4y agoYeah, FMA is really just one operation. Except when it's time to boast about FLOPS. Then it's always counted as two operations. :-)