1.0.30.5: optimize some floating point operations