Hello i am reading an article in topcoder and it says
"When executing shift instructions for a << b, the x86 architecture uses only the bottom 5 bits of b (6 for 64-bit integers). This means that shifting left (or right) by 32 does nothing, rather than clearing all the bits. "
He means that you can shift at most with 31?
Thanks
The C++ a << b is not defined as "execute the CPU instruction SHL", what that article says is irrelevant.
It is defined as "calculate a*2b" and, for unsigned types, if the result does not fit the result type, "reduce the result modulo maximum value of the return type plus 1"