bits, bytes and bitshifts

BlitzMax Forums/BlitzMax Programming/bits, bytes and bitshifts

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can get rid of the (b3 Shl 0) and just replace it with b3

ie

Local blen:Int=b3 | (b2 shl 8) | (b1 shl 16)