>>> operator
#1

Can anyone explain to me what does this >>> operator?
Code:
format(nomeArquivo, MAX_CHARS >>> 2, arquivoLer);
Thank you in advance!
Reply
#2

I was wondering the same..
Reply
#3

>>> - Shift bits left to right. The shift operation is unsigned and the vacant bits of the result are filled with zeros.
Reply
#4

This is the logical right shift. Used to shift bits to the right with the specified amount. Only really useful if you're trying to remove the alpha channel from a color to use it as an embedded color.

Suppose you have 0xFF0000FF, which is red. Shifting this to right by 8 would yield 0xFF0000 which can be used as embedded color.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)