| 97 | |
| 98 | |
| 99 | INLINE qindex insertBit(qindex number, int bitIndex, int bitValue) { |
| 100 | |
| 101 | qindex left = getBitsLeftOfIndex (number, bitIndex-1); // include bit at bitIndex |
| 102 | qindex right = getBitsRightOfIndex(number, bitIndex); |
| 103 | qindex all = concatenateBits(left, bitValue, 1, right, bitIndex); |
| 104 | return all; |
| 105 | } |
| 106 | |
| 107 | |
| 108 | INLINE qindex setBit(qindex number, int bitIndex, int bitValue) { |
no test coverage detected