Author: Armin Rigo <[email protected]>
Branch: unsigned-dtypes
Changeset: r47196:a29e7bc98682
Date: 2011-09-10 10:14 +0200
http://bitbucket.org/pypy/pypy/changeset/a29e7bc98682/

Log:    Shorter name. Add cast_float_to_ulonglong.

diff --git a/pypy/jit/codewriter/effectinfo.py 
b/pypy/jit/codewriter/effectinfo.py
--- a/pypy/jit/codewriter/effectinfo.py
+++ b/pypy/jit/codewriter/effectinfo.py
@@ -74,7 +74,7 @@
     OS_LLONG_UGE                = 91
     OS_LLONG_URSHIFT            = 92
     OS_LLONG_FROM_UINT          = 93
-    OS_LLONG_UNSIGNED_TO_FLOAT  = 94
+    OS_LLONG_U_TO_FLOAT         = 94
     #
     OS_MATH_SQRT                = 100
 
diff --git a/pypy/jit/codewriter/jtransform.py 
b/pypy/jit/codewriter/jtransform.py
--- a/pypy/jit/codewriter/jtransform.py
+++ b/pypy/jit/codewriter/jtransform.py
@@ -1004,7 +1004,8 @@
 
     for _op, _oopspec in [('cast_int_to_ulonglong',     'FROM_INT'),
                           ('cast_uint_to_ulonglong',    'FROM_UINT'),
-                          ('cast_ulonglong_to_float',   'UNSIGNED_TO_FLOAT'),
+                          ('cast_float_to_ulonglong',   'FROM_FLOAT'),
+                          ('cast_ulonglong_to_float',   'U_TO_FLOAT'),
                          ]:
         exec py.code.Source('''
             def rewrite_op_%s(self, op):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to