bit shift - Need some help in java Bit operations? -
i have byte array as: 00sssmmm
i want retrieve sss , mmm values int values.
can me in implementing in java ?
thanks.
i think mean
int x = ... int m = x & 0b111; int s = (x >> 3) & 0b111;
i have byte array as: 00sssmmm
i want retrieve sss , mmm values int values.
can me in implementing in java ?
thanks.
i think mean
int x = ... int m = x & 0b111; int s = (x >> 3) & 0b111;
Comments
Post a Comment