brshift#

Return $m >> $n - right shift by $n bits, truncating toward zero.

Synopsis#

Math::GMP->new(0b11001) >> 3;              # 0b11 = 3
Math::GMP->new(0b11001)->brshift(3, 0);    # same; the third argument
                                           # is the overload swap flag

Overload hook for >>. Uses truncated division, so negative values shift toward zero rather than toward minus infinity.