|
Hi,
came acoss this bit of code & don't fully understand it:
Value <<= 1
as in if((Value <<= 1) <= 255).......
I know << is equivalent to XOR but does this mean:
Value = Value << 1
if(Value <= 255)...
or something else???
Also:
value1 ^= value2....
is this equivalent to:
value1 = value1 ^ value2
Some of these short cuts get me and do you think I can find out about <<=...try googling that.
Any help appreciated
|
|
|
|
|
<< means bitshift left
>> is bitshift right
^ is XOR.
and a <operator>= b is the same as:
a = a <operator> b
|
|
|
|