mulu
fn
uint mulu()(uint x, uint y, ref bool overflow)Multiply two unsigned integers, checking for overflow (aka carry).
The overflow is sticky, meaning a sequence of operations can be done and overflow need only be checked at the end.
Parameters
x | left operand |
y | right operand |
overflow | set if an overflow occurs, is not affected otherwise |
Returns
the product
fn
ulong mulu()(ulong x, uint y, ref bool overflow)ditto
fn
ulong mulu()(ulong x, ulong y, ref bool overflow)ditto