Clean up cppcheck diagnostics in sse_mathfun.h and possibly optimize the code by removing data dependencies between ops and simplifying a few operations.