8 ms·
At the time C was designed not all machines did represent signed integers in 2 complement. Therefore it was not possible to define behavior for signed overflow.
by the5avage 6y ago
At the time C was designed not all machines did represent signed integers in 2 complement. Therefore it was not possible to define behavior for signed overflow. They probably should change that 2020^^
GCC has intrinsics for integer math with overflow checks
- ncmncm 6y agoC++ formalized two's complement already. Formalizing power-of-two word size and 8-bit bytes might come.