Overflowing::overflowing_mul
fn overflowing_mul(S a, S b) -> (S, bool) Import
Source: use arith::{Overflowing}; src/arith.hy The wrapped a * b, and whether it wrapped.
Parameters#
| Name | Type |
|---|---|
a | S |
b | S |
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_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.Overflowing::overflowing_shr:a >> (n & 63), and whethernwas outside0..=63.