muls

fnint muls()(int x, int y, ref bool overflow)

Multiply two signed integers, checking for overflow.

The overflow is sticky, meaning a sequence of operations can be done and overflow need only be checked at the end.

Parameters

xleft operand
yright operand
overflowset if an overflow occurs, is not affected otherwise

Returns

the product
fnlong muls()(long x, long y, ref bool overflow)

ditto