Exemplo n.º 1
0
def int_force_ge_zero(n):
    """ The JIT special-cases this too. """
    from rpython.rtyper.lltypesystem import lltype
    from rpython.rtyper.lltypesystem.lloperation import llop
    n = llop.int_force_ge_zero(lltype.Signed, n)
    assert n >= 0
    return n
Exemplo n.º 2
0
def int_force_ge_zero(n):
    """ The JIT special-cases this too. """
    from rpython.rtyper.lltypesystem import lltype
    from rpython.rtyper.lltypesystem.lloperation import llop
    return llop.int_force_ge_zero(lltype.Signed, n)