Did I find the right examples for you? yes no

All Samples(2111)  |  Call(2009)  |  Derive(0)  |  Import(102)

src/s/y/Sypy-HEAD/module/unicodedata/unicodedb_5_2_0.py   Sypy(Download)
# UNICODE CHARACTER DATABASE
# This file was generated with the command:
#     ./generate_unicodedb.py --unidata_version=5.2.0 --output=unicodedb_5_2_0
 
from pypy.rlib.rarithmetic import r_longlong
 
_composition = {
r_longlong(   65 << 32 |   768):   192,
r_longlong(   65 << 32 |   769):   193,
r_longlong(   65 << 32 |   770):   194,
r_longlong(   65 << 32 |   771):   195,

src/s/y/Sypy-HEAD/module/unicodedata/unicodedb_3_2_0.py   Sypy(Download)
# UNICODE CHARACTER DATABASE
# This file was generated with the command:
#     ./generate_unicodedb.py --unidata_version=3.2.0 --output=unicodedb_3_2_0 --base=unicodedb_5_2_0
 
from pypy.rlib.rarithmetic import r_longlong
 
_composition = {
r_longlong(   65 << 32 |   768):   192,
r_longlong(   65 << 32 |   769):   193,
r_longlong(   65 << 32 |   770):   194,
r_longlong(   65 << 32 |   771):   195,

src/s/y/Sypy-HEAD/objspace/std/smalllongobject.py   Sypy(Download)
from pypy.objspace.std.register_all import register_all
from pypy.objspace.std.multimethod import FailedToImplementArgs
from pypy.rlib.rarithmetic import r_longlong, r_int, r_uint
from pypy.rlib.rarithmetic import intmask, LONGLONG_BIT
from pypy.rlib.rbigint import rbigint
from pypy.interpreter.error import OperationError
 
LONGLONG_MIN = r_longlong((-1) << (LONGLONG_BIT-1))
 
 
    def fromint(value):
        return W_SmallLongObject(r_longlong(value))
 
    @staticmethod
    def frombigint(bigint):
                "cannot convert negative integer to unsigned int"))
        b = r_uint(a)
        if r_longlong(b) == a:
            return b
        else:
def delegate_Bool2SmallLong(space, w_bool):
    return W_SmallLongObject(r_longlong(space.is_true(w_bool)))
 
def delegate_Int2SmallLong(space, w_int):
    return W_SmallLongObject(r_longlong(w_int.intval))

src/s/y/Sypy-HEAD/objspace/std/objspace.py   Sypy(Download)
            if self.config.objspace.std.withsmalllong:
                from pypy.objspace.std.smalllongobject import W_SmallLongObject
                from pypy.rlib.rarithmetic import r_longlong, r_ulonglong
                from pypy.rlib.rarithmetic import longlongmax
                if (not isinstance(x, r_ulonglong)
                    or x <= r_ulonglong(longlongmax)):
                    return W_SmallLongObject(r_longlong(x))
    def wraplong(self, x):
        "NOT_RPYTHON"
        if self.config.objspace.std.withsmalllong:
            from pypy.rlib.rarithmetic import r_longlong
            try:
                rx = r_longlong(x)

src/s/y/Sypy-HEAD/jit/codewriter/support.py   Sypy(Download)
from pypy.rlib import rgc
from pypy.rlib.jit import elidable
from pypy.rlib.rarithmetic import r_longlong, r_ulonglong, r_uint, intmask
 
def getargtypes(annotator, values):
def _ll_1_llong_from_int(x):
    return r_longlong(intmask(x))
 
def _ll_1_ullong_from_int(x):
    return r_ulonglong(intmask(x))
 
def _ll_1_llong_from_uint(x):
    return r_longlong(r_uint(x))
def _ll_1_llong_from_float(xf):
    return r_longlong(xf)
 
def _ll_1_ullong_from_float(xf):
    return r_ulonglong(xf)

src/s/y/Sypy-HEAD/rpython/tool/rffi_platform.py   Sypy(Download)
from pypy.tool.udir import udir
from pypy.tool.autopath import pypydir
from pypy.rlib.rarithmetic import r_uint, r_longlong, r_ulonglong, intmask
 
# ____________________________________________________________
        return r_uint(value)
    try:
        if r_longlong(value) == value:
            return r_longlong(value)
    except OverflowError:

src/s/y/Sypy-HEAD/rlib/rbigint.py   Sypy(Download)
from pypy.rlib.rarithmetic import LONG_BIT, intmask, r_uint, r_ulonglong
from pypy.rlib.rarithmetic import ovfcheck, r_longlong, widen, is_valid_int
from pypy.rlib.rarithmetic import most_neg_value_of_same_type
from pypy.rlib.rfloat import isfinite
from pypy.rlib.debug import make_sure_not_resized, check_regular_int
    if SHIFT <= 15:
        return int(x)
    return r_longlong(x)
 
def _store_digit(x):
 
ULONGLONG_BOUND = r_ulonglong(1L << (r_longlong.BITS-1))
LONGLONG_MIN = r_longlong(-(1L << (r_longlong.BITS-1)))
 
def _AsLongLong(v):
            raise OverflowError
    else:
        x = r_longlong(x)
        if v.sign < 0:
            x = -x

src/s/y/Sypy-HEAD/translator/exceptiontransform.py   Sypy(Download)
from pypy.rpython import rclass
from pypy.rpython.rmodel import inputconst
from pypy.rlib.rarithmetic import r_uint, r_longlong, r_ulonglong
from pypy.rlib.rarithmetic import r_singlefloat
from pypy.rlib.debug import ll_assert
PrimitiveErrorValue = {lltype.Signed: -1,
                       lltype.Unsigned: r_uint(-1),
                       lltype.SignedLongLong: r_longlong(-1),
                       lltype.UnsignedLongLong: r_ulonglong(-1),
                       lltype.Float: -1.0,

src/s/y/Sypy-HEAD/rpython/lltypesystem/opimpl.py   Sypy(Download)
# global synonyms for some types
from pypy.rlib.rarithmetic import intmask
from pypy.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong
from pypy.rpython.lltypesystem.llmemory import AddressAsInt
 
def op_cast_longlong_to_float(i):
    assert isinstance(i, r_longlong_arg)
    # take first 31 bits
    li = float(int(i & r_longlong(0x7fffffff)))
    ui = float(int(i >> 31)) * float(0x80000000)

src/s/y/Sypy-HEAD/objspace/std/marshal_impl.py   Sypy(Download)
from pypy.interpreter.error import OperationError
from pypy.objspace.std.register_all import register_all
from pypy.rlib.rarithmetic import LONG_BIT, r_longlong, r_uint, intmask
from pypy.objspace.std import model
from pypy.interpreter.special import Ellipsis
        x = (hi << 32) | (lo & (2**32-1))    # result fits in an int
    else:
        x = (r_longlong(hi) << 32) | r_longlong(r_uint(lo))  # get a r_longlong
    return space.wrap(x)
register(TYPE_INT64, unmarshal_Int64)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next