blshift#

Return $m << $n - left shift by $n bits.

Synopsis#

Math::GMP->new(0b11) << 4;              # 0b110000 = 48
Math::GMP->new(0b11)->blshift(4, 0);    # same; the third argument is
                                        # the overload swap flag

Overload hook for <<. Only the low bits of $n that fit in an unsigned long count, because it is passed through mpz_get_ui: the shift is abs($n) modulo 2**64, so a negative $n shifts left by its magnitude and 2**64 + 1 shifts by 1.