I need to simplify expression
(byte)( (short)((short)( (byte)((theInt >> 8) & 0xFF) & 0xFF) + 128) & 0xFF);
(int)( (byte)(( (short)(theByte & 0xFF) + 128) & 0xFF) << 8);
My problem is: I think maybe is unnneccesary AND operations and casts and other type operations...
What are simplest expression?
is needed the
(theByte & 0xFF) And operation over byte Type?