which is faster using bytes or ints

BlitzMax Forums/BlitzMax Programming/which is faster using bytes or ints

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.

If you are storing the result of that in a byte you don't need the `& $FF`. The byte automatically trims it. But you probably should use it anyway and store it in a Local Int variable, just because they're faster internally.

To get the first byte: out=$44332211 shr 24
To get the second byte: out=($44332211 shr 16) & $FF
To get the third byte: out=($44332211 shr 8) & $FF
To get the final byte: out=$44332211 & $FF