blshift#

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

Synopsis#

Math::GMP->new(0b11)->blshift(4);    # 0b110000 = 48

Overload hook for <<. $n is taken modulo the word size of an unsigned long because it is passed through mpz_get_ui; if you are shifting by bit-widths that large, reconsider what you are doing.