added formulas for ios versions of fmod