Content deleted Content added
m add {{Use dmy dates}} |
Clarify example on how to fix the case where the multiplicand is the smallest representable number. |
||
Line 46:
* The product is 1111 0100, which is −12.
The above-mentioned technique is inadequate when the multiplicand is the [[two's complement#Most negative number|most negative number]] that can be represented (e.g. if the multiplicand has 4 bits then this value is −8). This is because then an overflow occurs when computing -m, the negation of the multiplicand, which is needed in order to set S. One possible correction to this problem is to
* A = 1 1000 0000 0
* S = 0 1000 0000 0
|