Avoid integer divides