Static
changeChange bit according to given value on data from index
Unsigned integer value
Unsigned integer value (0..7)
Static
clearStatic
getTransforms a position (1..n) to byte index and inner bit position
Unsigned integer value (1..n)
Static
hasChecks if all logical "1" bits from byte2 compare to the ones in byte1
// 1. 0101 0010 (82 dec)
// 2. 0100 0010 (66 dec)
// ------------- AND
// 0100 0010 (66 dec)
// 66 dec === 66 dec :-)
//
// 1. 0010 1100 (44 dec)
// 2. 0010 1000 (40 dec)
// ------------- AND
// 0010 1000 (40 dec)
// 40 dec === 40 dec :-)
// 1. 0000 0000 (0 dec)
// 2. 0001 0000 (16 dec)
// -------------- AND
// 0000 0000 (0 dec)
// 0 dec !== 16 dec :-(
// 1. 0000 0000 (0 dec)
// 2. 0010 0010 (34 dec)
// -------------- AND
// 0000 0000 (0 dec)
// 0 dec !== 34 dec :-(
Static
hasCompare 2 bytes, matches when byte1 has any similar bits set compared to byte2
Static
isCheck if bit is set false on index
Unsigned integer value
Unsigned integer value (0..7)
Static
isCheck if bit is set true on index
Unsigned integer value
Unsigned integer value (0..7)
Static
setStatic
toggle
This is the Gibbon Processor which does all the bit masking, nothing special ;)