[pypy-svn] r68085 - pypy/branch/floats-via-sse2/pypy/module/pypyjit

fijal at codespeak.net fijal at codespeak.net
Thu Oct 1 10:31:17 CEST 2009


Author: fijal
Date: Thu Oct  1 10:31:16 2009
New Revision: 68085

Modified:
   pypy/branch/floats-via-sse2/pypy/module/pypyjit/policy.py
Log:
Reinstantiate float support


Modified: pypy/branch/floats-via-sse2/pypy/module/pypyjit/policy.py
==============================================================================
--- pypy/branch/floats-via-sse2/pypy/module/pypyjit/policy.py	(original)
+++ pypy/branch/floats-via-sse2/pypy/module/pypyjit/policy.py	Thu Oct  1 10:31:16 2009
@@ -10,12 +10,6 @@
         if (func.__name__.startswith('_mm_') or
             func.__name__.startswith('__mm_')):
             # multimethods
-            name = func.__name__.lstrip('_')
-            if (name.startswith('mm_truediv') or
-                name.startswith('mm_inplace_truediv') or
-                name.startswith('mm_float')):
-                # floats
-                return False
             return True
         if '_mth_mm_' in func.__name__:    # e.g. str_mth_mm_join_xxx
             return True
@@ -27,11 +21,6 @@
                 return False
 
         if mod.startswith('pypy.objspace.'):
-            # we don't support floats
-            if 'float' in mod or 'complex' in mod:
-                return False
-            if func.__name__ == 'format_float':
-                return False
             # gc_id operation
             if func.__name__ == 'id__ANY':
                 return False



More information about the Pypy-commit mailing list