[pypy-svn] r53533 - pypy/branch/jit-hotpath/pypy/jit/tl

arigo at codespeak.net arigo at codespeak.net
Mon Apr 7 19:26:11 CEST 2008


Author: arigo
Date: Mon Apr  7 19:26:10 2008
New Revision: 53533

Modified:
   pypy/branch/jit-hotpath/pypy/jit/tl/tiny3_hotpath.py
Log:
Remove pointless function myfloat().


Modified: pypy/branch/jit-hotpath/pypy/jit/tl/tiny3_hotpath.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/tl/tiny3_hotpath.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/tl/tiny3_hotpath.py	Mon Apr  7 19:26:10 2008
@@ -51,7 +51,7 @@
     def as_int(self):
         return self.intval
     def as_float(self):
-        return myfloat(self.intval)
+        return float(self.intval)
     def as_str(self):
         return str(self.intval)
 
@@ -202,7 +202,7 @@
                 try:
                     v = IntBox(int(opcode))
                 except ValueError:
-                    v = FloatBox(myfloat(opcode))
+                    v = FloatBox(float(opcode))
                 stack = Stack(v, stack)
             except ValueError:
                 pass # ignore rest
@@ -249,9 +249,6 @@
             raise ValueError
     return n
 
- at specialize.argtype(0)
-def myfloat(i):
-    return float(i)
 # ------------------------------
 
 



More information about the Pypy-commit mailing list