3 ms·
Yet another example of unnecessary undefined behavior in C as a consequence of needing to run on dead hardware. Bit shifting should clearly be defined to be ope
by david2ndaccount 5y ago
Yet another example of unnecessary undefined behavior in C as a consequence of needing to run on dead hardware. Bit shifting should clearly be defined to be operating on the underlying bits, with the resulting value being whatever that bit pattern would be on the target architecture.
- justincormack 5y ago“Whatever that bit pattern would be on the target architecture” is the original understanding of undefined.