4 ms·
Maybe a better way to illustrate the surprising behavior is that if (x < x + c) { // block } if (0 < c) { // block } are not equivalent statements if you add
by Spivak 11y ago
Maybe a better way to illustrate the surprising behavior is that
if (x < x + c) {
// block
}
if (0 < c) {
// block
}
are not equivalent statements if you add overflow wrapping into the spec. What if the processor your application is running on doesn't do two's compliment arithmetic? Does gcc need to emulate this behavior to comply with the spec?