-->
Page 1 of 1

Bit shifting??

PostPosted: Sat Jun 03, 2017 4:59 am
by PhilTilson
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:

Code: Select allhv = 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? :geek:

Re: Bit shifting??

PostPosted: Sat Jun 03, 2017 6:11 am
by Electroguard

Re: Bit shifting??

PostPosted: Sat Jun 03, 2017 11:04 am
by PhilTilson
So it is! :oops:

Thanks.

Phil