[pypy-svn] r21305 - pypy/dist/pypy/rpython
ac at codespeak.net
ac at codespeak.net
Mon Dec 19 13:22:02 CET 2005
Author: ac
Date: Mon Dec 19 13:22:02 2005
New Revision: 21305
Modified:
pypy/dist/pypy/rpython/llinterp.py
Log:
Add support for r_ulonglong to llinterp.
Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py (original)
+++ pypy/dist/pypy/rpython/llinterp.py Mon Dec 19 13:22:02 2005
@@ -1,5 +1,5 @@
from pypy.objspace.flow.model import FunctionGraph, Constant, Variable, c_last_exception
-from pypy.rpython.rarithmetic import intmask, r_uint, ovfcheck, r_longlong
+from pypy.rpython.rarithmetic import intmask, r_uint, ovfcheck, r_longlong, r_ulonglong
from pypy.rpython.lltypesystem import lltype
from pypy.rpython.memory import lladdress
from pypy.rpython.ootypesystem import ootype
@@ -560,7 +560,7 @@
# __________________________________________________________
# primitive operations
- for typ in (float, int, r_uint, r_longlong):
+ for typ in (float, int, r_uint, r_longlong, r_ulonglong):
typname = typ.__name__
optup = ('add', 'sub', 'mul', 'div', 'truediv', 'floordiv',
'mod', 'gt', 'lt', 'ge', 'ne', 'le', 'eq',)
@@ -568,6 +568,8 @@
opnameprefix = 'uint'
elif typ is r_longlong:
opnameprefix = 'llong'
+ elif typ is r_ulonglong:
+ opnameprefix = 'ullong'
else:
opnameprefix = typname
if typ in (int, r_uint):
More information about the Pypy-commit
mailing list