[pypy-svn] pypy default: isnan for the jvm backend
antocuni
commits-noreply at bitbucket.org
Mon Apr 11 12:01:19 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r43281:f83a249c12d4
Date: 2011-04-11 09:01 +0000
http://bitbucket.org/pypy/pypy/changeset/f83a249c12d4/
Log: isnan for the jvm backend
diff --git a/pypy/translator/jvm/src/pypy/PyPy.java b/pypy/translator/jvm/src/pypy/PyPy.java
--- a/pypy/translator/jvm/src/pypy/PyPy.java
+++ b/pypy/translator/jvm/src/pypy/PyPy.java
@@ -1186,6 +1186,10 @@
return Math.copySign(x, y);
}
+ public boolean ll_math_isnan(double x) {
+ return Double.isNaN(x);
+ }
+
private double check(double v) {
if (Double.isNaN(v))
interlink.throwValueError();
More information about the Pypy-commit
mailing list