Commits

Alex Gaynor  committed b441e4f

Use the slightly simpler isfinite, makes math.fsum perhaps a nanosecond faster

  • Participants
  • Parent commits b49818a

Comments (1)

Files changed (1)

File pypy/module/math/interp_math.py

             v = hi
         del partials[added:]
         if v != 0.0:
-            if rfloat.isinf(v) or rfloat.isnan(v):
+            if not rfloat.isfinite(v):
                 if (not rfloat.isinf(original) and
                     not rfloat.isnan(original)):
                     raise OperationError(space.w_OverflowError,