[pypy-svn] pypy default: ll_math_copysign for the jvm backend

antocuni commits-noreply at bitbucket.org
Mon Apr 11 12:01:18 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r43280:adcc160d3661
Date: 2011-04-11 09:00 +0000
http://bitbucket.org/pypy/pypy/changeset/adcc160d3661/

Log:	ll_math_copysign 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
@@ -1182,6 +1182,10 @@
         return Math.tanh(x);
     }
 
+    public double ll_math_copysign(double x, double y) {
+        return Math.copySign(x, y);
+    }
+
     private double check(double v) {
         if (Double.isNaN(v))
             interlink.throwValueError();


More information about the Pypy-commit mailing list