Overflowing::overflowing_shr
fn overflowing_shr(S a, int n) -> (S, bool) Import
Source: use arith::{Overflowing}; src/arith.hy a >> (n & 63), and whether n was outside 0..=63.
Parameters#
| Name | Type |
|---|---|
a | S |
n | int |
Returns#
(S, bool)
See also#
Overflowing: Integer arithmetic that returns the wrapped result together with whether it wrapped.Overflowing::overflowing_add: The wrappeda + b, and whether it wrapped.Overflowing::overflowing_sub: The wrappeda - b, and whether it wrapped.Overflowing::overflowing_mul: The wrappeda * b, and whether it wrapped.Overflowing::overflowing_neg: The wrapped-a, and whether it wrapped.Overflowing::overflowing_pow: The wrappeda ** exp, and whether it wrapped.Overflowing::overflowing_shl:a << (n & 63), and whethernwas outside0..=63.