CodePudding user response:
The left one, equivalent to take 2CodePudding user response:
This is a bit operations, & lt;Operation and general operators, such as + + 1 + 1, the results of the variables is +=1 + 1 to assign variables
Similarly, & lt; <1 left one, variable & lt; <=1 is the outcome of variable left one again is assigned to the variable
Because is binary, so the left one is equivalent to multiply by 2, moves to the right one is divided by 2,
For example, to move 1 byte 8 bit, for example, a binary 0 0000001 (decimal), the left one into a 0000001 - 0 (2) decimal, high part with low fill 0, decimal Numbers from 1 to 2, and is equivalent to multiply by 2,
CodePudding user response: