List of utility methods to do Bit Clean
long | clearBit(long n, int i) clear Bit return n & ~(1L << i);
|
boolean | clearBit33ofDTS(byte[] array, int offset) clear Bitof DTS if ((0x40 & array[7 + offset]) != 0) { array[9 + 5 + offset] &= ~8; return true; return false; |
int | clearBits(int value, int bits) Clear selected bit(s) in giving value return value & ~bits;
|
long | clearBits(long value, long bits) Clears the bits of a value. return value & ~bits;
|
int | clearBitsAfterInLastWord(int lastWord, int lastSetBit) clear Bits After In Last Word return lastWord &= ALL_ZEROS_LITERAL | (0xFFFFFFFF >>> (31 - lastSetBit));
|
int | clearBitsUpToLS(int n, int i) clear Bits Up To LS return n & ~(-1 >> (31 - i));
|