コード例 #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
コード例 #2
0
ファイル: rarithmetic.py プロジェクト: mozillazg/pypy
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)