[pypy-commit] pypy default: hg backout c5d041657831: I will move it to the stdobjspace instead,
arigo
noreply at buildbot.pypy.org
Sun Jan 22 12:22:34 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r51641:937fb53e76ac
Date: 2012-01-22 12:19 +0100
http://bitbucket.org/pypy/pypy/changeset/937fb53e76ac/
Log: hg backout c5d041657831: I will move it to the stdobjspace instead,
where it can be special-cased before we do all the "isinf()" and
"isnan()" checks.
diff --git a/pypy/rpython/lltypesystem/module/ll_math.py b/pypy/rpython/lltypesystem/module/ll_math.py
--- a/pypy/rpython/lltypesystem/module/ll_math.py
+++ b/pypy/rpython/lltypesystem/module/ll_math.py
@@ -292,10 +292,6 @@
# deal directly with IEEE specials, to cope with problems on various
# platforms whose semantics don't exactly match C99
- if y == 2.0:
- return x * x # this is always a correct answer, and is relatively
- # common in user programs.
-
if isnan(y):
if x == 1.0:
return 1.0 # 1**Nan = 1
More information about the pypy-commit
mailing list