Did I find the right examples for you? yes no

All Samples(18)  |  Call(9)  |  Derive(0)  |  Import(9)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/llinterp.py   plexnet(Download)
from pypy.objspace.flow.model import FunctionGraph, Constant, Variable, c_last_exception
from pypy.rlib.rarithmetic import intmask, r_uint, ovfcheck, r_longlong
from pypy.rlib.rarithmetic import r_ulonglong, ovfcheck_lshift
from pypy.rpython.lltypesystem import lltype, llmemory, lloperation, llheap
from pypy.rpython.lltypesystem import rclass
    def op_int_lshift_ovf(self, x, y):
        assert isinstance(x, int)
        assert isinstance(y, int)
        try:
            return ovfcheck_lshift(x, y)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/intobject.py   plexnet(Download)
from pypy.objspace.std.objspace import *
from pypy.objspace.std.noneobject import W_NoneObject
from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift, LONG_BIT, r_uint
from pypy.rlib.rbigint import rbigint
from pypy.objspace.std.inttype import wrapint
                                space.wrap("integer left shift"))
    try:
        c = ovfcheck_lshift(a, b)
    except OverflowError:
        raise FailedToImplement(space.w_OverflowError,

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/smallintobject.py   plexnet(Download)
from pypy.objspace.std.objspace import *
from pypy.objspace.std.noneobject import W_NoneObject
from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift, LONG_BIT, r_uint
from pypy.objspace.std.inttype import wrapint
from pypy.objspace.std.intobject import W_IntObject
    ##     OverflowError.
    try:
        c = ovfcheck_lshift(a, b)
        ## the test in C code is
        ## if (a != Py_ARITHMETIC_RIGHT_SHIFT(long, c, b)) {

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/flow/operation.py   plexnet(Download)
import operator, types, __future__
from pypy.tool.sourcetools import compile2
from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift
 
FunctionByName = {}   # dict {"operation_name": <built-in function>}
def lshift_ovf(x, y):
    return ovfcheck_lshift(x, y)
 
# slicing: operator.{get,set,del}slice() don't support b=None or c=None
def do_getslice(a, b, c):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rlib/listsort.py   plexnet(Download)
from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift
 
 
## ------------------------------------------------------------------------
## Lots of code for an adaptive, stable, natural mergesort.  There are many
                    lastofs = ofs
                    try:
                        ofs = ovfcheck_lshift(ofs, 1)
                    except OverflowError:
                        ofs = maxofs
                    lastofs = ofs
                    try:
                        ofs = ovfcheck_lshift(ofs, 1)
                    except OverflowError:
                        ofs = maxofs

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/simplify.py   plexnet(Download)
    Instead, it will be replaced by an OP_LSHIFT_OVF operation.
    """
    from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift
    from pypy.objspace.flow.objspace import implicit_exceptions
    covf = Constant(ovfcheck)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/test/test_simplify.py   plexnet(Download)
def test_remove_ovfcheck_lshift():
    # check that ovfcheck_lshift() is handled
    from pypy.rlib.rarithmetic import ovfcheck_lshift
    def f(x):
        try:
            return ovfcheck_lshift(x, 2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/cli/test/test_snippet.py   plexnet(Download)
    def test_link_vars_overlapping(self):
        from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift
        def fn(maxofs):
            lastofs = 0
            ofs = 1
            while ofs < maxofs:
                lastofs = ofs
                try:
                    ofs = ovfcheck_lshift(ofs, 1)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/test/snippet.py   plexnet(Download)
 
 
from pypy.rlib.rarithmetic import ovfcheck, ovfcheck_lshift
 
def add_func(i=numtype):
def lshift_func(i=numtype):
    try:
        hugo(2, 3, 5)
        return ovfcheck_lshift((-maxint-1), i)
    except (hugelmugel, OverflowError, StandardError, ValueError):