Fix INF/-INF issues in rounding macros