Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit