Content deleted Content added
Line 4:
* Convert the factors to [[two's complement]] notation.
* Find the negative of the multiplicand.
* The product starts out as the multiplier.
* Count how many bits are in the multiplicand. Add that many 0s to the left of the * Add a 0 to the right of the
* Count how many bits are in the
*# If the two rightmost bits are...
*#* 00 or 11: do nothing.
*#* 01: add the multiplicand to the far left of the
*#* 10: add the negative of the multiplicand to the far left of the
*# Perform a right [[arithmetic shift]] on the result.
* Remove the rightmost bit from the
==Example==
|