Perform everything in integer arithmetic using some bit twiddling to avoid the performance cost of converting to and from floating point values.
Perform everything in integer arithmetic using some bit twiddling to avoid the performance cost of converting to and from floating point values.