binary difference between working on singed and unsigned

Started by
19 comments, last by Anthony Serrano 10 years, 1 month ago

Yes but since this is a theoretical example, there is no such thing as "overflow", I can add as many bits as I theoretically need.


It's worth pointing out that on basically every CPU that has a multiply instruction, it takes two single-register operands and returns a double-register result, so your example isn't all that theoretical - it's the reason why almost every CPU with a multiply instruction has different versions for signed and unsigned.

This topic is closed to new replies.

Advertisement