symmetric signed types
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Sat Jan 25 09:35:17 PST 2014
On Saturday, 25 January 2014 at 17:15:56 UTC, Ola Fosheim Grøstad
wrote:
> Fortunately most CPUS have ones-complement so the result is
Err... "Two's complement." Nngh! Anyway, the basic idea is to
think of minus for unsigned integers as ~x + 1, not as a
operation using negative integers. Then it makes sense.
More information about the Digitalmars-d
mailing list