コード例 #1
0
def divide(dividend, divisor):
    s = sign(dividend) * sign(divisor)
    q, r = divide_step(abs(dividend), abs(divisor), 1)
    return overflow32(s * q)
コード例 #2
0
def divide(dividend, divisor):
    s = sign(dividend) * sign(divisor)
    q, r = divide_step(abs(dividend), abs(divisor), 1)
    return overflow32(s*q)
コード例 #3
0
def reverse(x):
    n = sign(x) * digits2int_b(int2digits(abs(x)))
    return overflow32(n, 0, 0)