(s, n, prec, rnd=round_fast)
return normalize(sign, man, exp, bitcount(man), prec, rnd)
Multiply by a Python integer.
Multiply by a Python integer.
Multiply by a Python integer .
def gmpy_mpf_mul_int(s, n, prec, rnd=round_fast):
    """Multiply by a Python integer."""
    sign, man, exp, bc = s
    if not man:
        return mpf_mul(s, from_int(n), prec, rnd)
    if not n:
        return fzero
    if n < 0:
        sign ^= 1
        n = -n
    man *= n
    return normalize(sign, man, exp, bitcount(man), prec, rnd)
def gmpy_mpf_mul_int ( s , n , prec , rnd = round_fast ) : sign , man , exp , bc = s if not man : return mpf_mul ( s , from_int ( n ) , prec , rnd ) if not n : return fzero if n < 0 : sign ^= 1 n = - n man *= n return normalize ( sign , man , exp , bitcount ( man ) , prec , rnd )