News for hackers. Stuff that matters.
Re:Issues with porting C++ code to a 64-bit platform by MichaelSalib on Monday April 01, 2013 @04:36PM (#5475749)
This is wrong.

Take an integer value x. Flip the sign bit. Do you now have the value -x? On a 2s complement architecture, you do not. In 2s complement, you have to flip all the bits and add one to get -x.

Re:Issues with porting C++ code to a 64-bit platform by dschatz on Thursday April 04, 2013 @10:02AM (#5492679)
Sign bit means one bit represents the sign of the integer which is the case with the most significant bit in 2s complement.

If you flip the sign bit, the sign changes. It does not mean that if you flip the sign, the value is negated.