Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
dmitrygr
5d ago
0 comments
Share
Fun story: even the latest C spec doesn’t require CHAR_BIT == 8, but it does now codify 2s complement int representation. (IIRC)
0 comments
default
newest
oldest
eru
5d ago
For unsigned ints, or also for signed ints?
account42
5d ago
Two's complement is a representation specifically for signed integers.
dmitrygr
OP
5d ago
For signed. Unsigned overflow was defined for a while now.
gblargg
5d ago
And unsigned negation is two's complement negation as well (-u = 0-u).
j
/
k
navigate · click thread line to collapse