Optimizing FP Operations and Integer Division