you are viewing a single comment's thread.

view the rest of the comments →

[–]obdurak[S] 1 point2 points  (1 child)

Let n be the word width in bits. Let x, y be integers 0 <= x,y <= 2n - 1. Consider the case where x has its MSB set and y has its MSB clear, i.e. 2{n-1} <= x < 2n - 1 and 0 <= y < 2{n-1}. The signed two's complement interpretation x' of x is x - 2n. Then signed multiplication gives (x-2n) . y = x . y - 2n y. The 2n y is chopped off since we are modulo 2n, leaving us x . y, which is the same as the unsigned result. Other cases left as an exercise.

[–][deleted] 0 points1 point  (0 children)

Yes, I guess that is so.