|
|
|
|
|
by chongli
1171 days ago
|
|
C23 does make two’s complement standard. It also adds checked arithmetic so you can safely avoid signed overflow. It does not make signed overflow defined behaviour. This would prevent integer operation reordering as an optimization, leading to slower code. |
|
The sane way to address that is to add explicit opt-in annotations like 'restrict'.