Don't use division by zero to generate NaN / inf, since it break MSVC builds.