The bit is shifted!
Original binary file 500:
111110100
A shift of 4
000011111, which is 31!
Original: 111110100
1st Shift:011111010
2nd Shift:001111101
3rd Shift:000111110
4th Shift:000011111 which equals 31.
This is equivalent to doing an integer division by 16.
500/16 = 31
500/2 ^ 4 = 31
: http://www.cs.umd.edu/class/spring2003/cmsc311/Notes/BitOp/bitshift.html ( , . , )
< 0 ( ) , ().
β 0 () , (), .
Bitshifting . .