Which platform can we expect one's complement being used there?

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2010-03-19T00:03:55Z Indexed on 2010/03/19 0:11 UTC
Read the original article Hit count: 633

Filed under:
|
|
|
|

For some questions such as checking whether a number is odd or even, I noted the comment,

a & 1

won't work when it is a one's complement machine or when the code is ported to a platform that uses one's complement.

Since 30 years ago on the Superboard, TRS-80, Apple II, I haven't seen a system with one's complement.

Are there popular systems that use one's complement still, or do we have some cell phone or mobile device that uses one's complement?

© Stack Overflow or respective owner

Related posts about binary

Related posts about arithmetic