Improvements to the math in mEase

Just a few math improvments to mEase to improve compiler optimization.
@Winterleaf care to comment?