Y
Hacker News
new
|
ask
|
show
|
jobs
by
eru
29 days ago
For unsigned ints, or also for signed ints?
2 comments
account42
29 days ago
Two's complement is a representation specifically for signed integers.
link
dmitrygr
29 days ago
For signed. Unsigned overflow was defined for a while now.
link
gblargg
29 days ago
And unsigned negation is two's complement negation as well (-u = 0-u).
link