Arithmetical considerations

Wherever possible, use multiplication rather than division. For example,
x*(1.0/3.0);  /*  1.0/3.0 is evaluated at compile time  */
produces faster code than:
x/3.0;

If you divide many values by the same number in your code: Assign the divisor’s reciprocal to a temporary variable and then multiply by that variable.