I\'m writing fairly low level code that must be highly optimized for speed. Every CPU cycle counts. Since the code is in Java I can\'t write as low level as in C for example
You don't need to (& 0xff) before shifting 24 bits to the left.