| is the bitwise OR operator it means you are performing an OR on 1 bit(0 and 1). This is in contrast with the logical OR operator || which performs his actions on true and false values(booleans)
>> is a bitwise right shift operator.
In your case the hex value 0x80 gets shifted 4 bit-positions to the right.
Hope this helps.
Last edited by ddanbe; Nov 9th, 2008 at 6:45 am. Reason: typo
Reputation Points: 2035
Solved Threads: 644
Senior Poster
Offline 3,738 posts
since Oct 2008