Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
eru
1mo ago
0 comments
Save
Share
For unsigned ints, or also for signed ints?
0 comments
3 comments · 2 top-level
top
newest
oldest
dmitrygr
1mo ago
· 1 in thread
For signed. Unsigned overflow was defined for a while now.
gblargg
1mo ago
And unsigned negation is two's complement negation as well (-u = 0-u).
account42
1mo ago
Two's complement is a representation specifically for signed integers.
j
/
k
navigate · click thread line to collapse