Did I find the right examples for you? yes no

All Samples(561)  |  Call(372)  |  Derive(0)  |  Import(189)

```import py
import sys
from pypy.rlib.rarithmetic import r_uint, LONG_BIT
from pypy.rlib.objectmodel import we_are_translated
```
```MAX_DEPTH = 32 # maybe should be smaller
CONCATENATE_WHEN_MULTIPLYING = 128
HIGHEST_BIT_SET = intmask(1L << (NBITS - 1))

def find_fib_index(l):
```
```        i += 1

for _i in range(LONG_BIT)]

```
```    while b:
if b & 1:
b >>= 1
index += 1
```
```        h1 = self.hash
h2 = other.hash
x |= HIGHEST_BIT_SET
result.hash = x
```

```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
```
```def _mask_digit(x):

def _widen_digit(x):
```
```def _check_digits(l):
for x in l:
assert type(x) is type(NULLDIGIT)
class Entry(extregistry.ExtRegistryEntry):
```
```        # than the sign bit).
sign = self.sign
if intmask(x) < 0 and (sign > 0 or (x << 1) != 0):
raise OverflowError
```

```import py
import sys
from pypy.rlib.rarithmetic import r_uint, LONG_BIT
from pypy.rlib.objectmodel import we_are_translated
```
```MAX_DEPTH = 32 # maybe should be smaller
CONCATENATE_WHEN_MULTIPLYING = 128
HIGHEST_BIT_SET = intmask(1L << (NBITS - 1))

def find_fib_index(l):
```
```        i += 1

for _i in range(LONG_BIT)]

```
```    while b:
if b & 1:
b >>= 1
index += 1
```
```        h1 = self.hash
h2 = other.hash
x |= HIGHEST_BIT_SET
result.hash = x
```

```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):

def _ll_1_ullong_from_int(x):
```
```def _ll_1_llong_to_int(xll):

def _ll_1_llong_from_float(xf):
return r_longlong(xf)
```

```from pypy.rpython.memory.gc import minimarkpage, env
from pypy.rpython.memory.support import mangle_hash
from pypy.rlib.rarithmetic import ovfcheck, LONG_BIT, intmask, r_uint
from pypy.rlib.rarithmetic import LONG_BIT_SHIFT
from pypy.rlib.debug import ll_assert, debug_print, debug_start, debug_stop
```
```        # --- Optimized version:
((r_uint(length) + r_uint((LONG_BIT << self.card_page_shift) - 1)) >>
(self.card_page_shift + LONG_BIT_SHIFT)))

```
```        # --- Optimized version:
((r_uint(length) + r_uint((8 << self.card_page_shift) - 1)) >>
(self.card_page_shift + 3)))

```

```
# global synonyms for some types
from pypy.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong
```
```        assert isinstance(x, llgroup.CombinedSymbolic)

def op_int_sub(x, y):
if not is_valid_int(x):
from pypy.rpython.lltypesystem import llgroup
assert isinstance(x, llgroup.CombinedSymbolic)
assert is_valid_int(y)
```
```def op_int_mul(x, y):

```
```def op_cast_float_to_int(f):
assert type(f) is float

def op_cast_float_to_uint(f):
```

```    just the same as compute_hash(x).
"""

# ----------

def _hash_string(s):
"""The algorithm behind compute_hash() for a string or a unicode."""
```
```        i += 1
x ^= length

def _hash_float(f):
```
```    In RPython, floats cannot be used with ints in dicts, anyway.
"""
from pypy.rlib.rarithmetic import intmask, isinf, isnan
if isinf(f):
if f < 0.0:
```

```from pypy.rlib.debug import debug_start, debug_stop, ll_assert, make_sure_not_resized
from pypy.rlib.objectmodel import we_are_translated
from pypy.rlib.rarithmetic import intmask, LONG_BIT, r_uint, ovfcheck
from pypy.rlib.unroll import unrolling_iterable
```
```def signedord(c):
value = ord(c)
value = intmask(value << (LONG_BIT-8)) >> (LONG_BIT-8)
return value

```
```    def bhimpl_int_add(a, b):

@arguments("i", "i", returns="i")
def bhimpl_int_sub(a, b):

@arguments("i", "i", returns="i")
def bhimpl_int_mul(a, b):
```

```from pypy.rpython.ootypesystem import ootype
from pypy.rpython.lltypesystem.lloperation import llop
from pypy.rlib.rarithmetic import ovfcheck, r_uint, intmask
from pypy.jit.metainterp.history import BoxInt, ConstInt, check_descr
from pypy.jit.metainterp.history import INT, REF, ConstFloat
```
```def do_int_add(cpu, box1, box2):

def do_int_sub(cpu, box1, box2):

def do_int_mul(cpu, box1, box2):
```
```def do_int_lshift(cpu, box1, box2):

def do_uint_rshift(cpu, box1, box2):
v = r_uint(box1.getint()) >> r_uint(box2.getint())
```

```import time

from pypy.rlib.rarithmetic import r_longlong, r_ulonglong, r_uint
```    x = long(time.time() * 500000000)