Bit shifting??
Posted: Sat Jun 03, 2017 4:59 am
I have been looking at some of the (very useful) examples posted by TrackerJ.
In several places he makes use of a double angle-bracket, eg:
I can only assume that this means "shift the value 4 bits to the right" - in other words, divide it by 16 - and that there would be a corresponding "<<" to bit-shift left. But I can find no mention of this in any of the references.
Any ideas?
In several places he makes use of a double angle-bracket, eg:
Code: Select all
hv = val >> 4
I can only assume that this means "shift the value 4 bits to the right" - in other words, divide it by 16 - and that there would be a corresponding "<<" to bit-shift left. But I can find no mention of this in any of the references.
Any ideas?