3 ms·
>I avoid bitwise manipulation on negative numbers, because they're not guaranteed to be two's complement. This seems purely theoretical, as there is no reasona
by garaetjjte 8y ago
>I avoid bitwise manipulation on negative numbers, because they're not guaranteed to be two's complement.
This seems purely theoretical, as there is no reasonable architectures that are not using two's complement. It will be defined as two's complement in C++20. (but still with signed overflow UB, to keep some optimizations possible)