4 ms·
You are of course correct. Not only have I mistook precedence, but I confused the lower bit with the upper one where overflow occurs. So the compiler optimizab
by cornholio 8y ago
You are of course correct. Not only have I mistook precedence, but I confused the lower bit with the upper one where overflow occurs.
So the compiler optimizable fix is something like:
((x & INT_MAX) * 2) / 2 = x