Division

In mathematics, division (÷) is an arithmetic elementary operation.

Multiplying

This is one of the four elementary, mathematical operations of arithmetic; with the others being addition, subtraction and division.

Note dshin faster

Quality | Example |
---|---|

Slower |
"Sure that s probably compiled or jit d away but you should avoid division in performance critical code it s far slower than multiplying" from question "Any ideas on how to optimize this code? I cant seem to come up with anything that works" |

Faster |
"Note that i ve incorporated dshin s comment that multiplying is faster than division however the performance improvement is about 90 removing the binary search 10 multiplication vs" from question "How to speed up a C++ sparse matrix manipulation?" |

Decimal number single

Quality | Example |
---|---|

Slower |
"According to agner s instruction tables a single fp division is slower than a single reciprocal op and a single multiplying op" from question "Why is fp division op slower than reciprocal op plus multiply op" "I presume that you know that using a division is a lot slower than multiplying by decimal number 5 is always slower than 0.2" from question "Create sine lookup table in C++" |

Others