[pypy-commit] pypy unsigned-dtypes: add ullong_from_float
justinpeel
noreply at buildbot.pypy.org
Thu Sep 22 19:08:27 CEST 2011
Author: Justin Peel <notmuchtotell at gmail.com>
Branch: unsigned-dtypes
Changeset: r47398:b72e47360723
Date: 2011-09-22 17:07 +0000
http://bitbucket.org/pypy/pypy/changeset/b72e47360723/
Log: add ullong_from_float
diff --git a/pypy/jit/codewriter/support.py b/pypy/jit/codewriter/support.py
--- a/pypy/jit/codewriter/support.py
+++ b/pypy/jit/codewriter/support.py
@@ -330,6 +330,9 @@
def _ll_1_llong_from_float(xf):
return r_longlong(xf)
+def _ll_1_ullong_from_float(xf):
+ return r_ulonglong(xf)
+
def _ll_1_llong_to_float(xll):
return float(rffi.cast(lltype.SignedLongLong, xll))
More information about the pypy-commit
mailing list