Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r67143:b441e4fd93e5
Date: 2013-09-29 23:25 -0700
http://bitbucket.org/pypy/pypy/changeset/b441e4fd93e5/
Log: Use the slightly simpler isfinite, makes math.fsum perhaps a
nanosecond faster
diff --git a/pypy/module/math/interp_math.py b/pypy/module/math/interp_math.py
--- a/pypy/module/math/interp_math.py
+++ b/pypy/module/math/interp_math.py
@@ -334,7 +334,7 @@
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,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit