Modern CPUs peform multiplication much faster than division, because of two reasons, multiplication are more considered worthy optimization and are easier to in silicon. This tells how to replace two divisions with one with small accuracy compomise: http://stereopsis.com/2div.html Similarly, you can replace three divisions with one, etc.