Tutorial :CPU floating operations cost


I'm interesting in the time cost on a modern desktop CPU of some floating point operations in order to optimize a mathematical evaluation. In particular I'm interested on the comparison between complex operations like exp, log and simple operation like +, *, /.

I tried to search for this information, but I could't find a source.

What is the cost of floating point operations?


Modern CPUs will do float + and - in a few clocks. Many will do * with a small number of clocks, but more than + and -. Divide is usually considerably slower than *. Transcendentals are slower than Divide.

You can likely get some ideas of speed by looking in Intel optimization manuals.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »