| 106 | |
| 107 | |
| 108 | INLINE qindex setBit(qindex number, int bitIndex, int bitValue) { |
| 109 | |
| 110 | // beware that shifting the raw int would overflow (#623) |
| 111 | qindex bitInPlace = ((qindex) bitValue) << bitIndex; |
| 112 | qindex oneInPlace = QINDEX_ONE << bitIndex; |
| 113 | return (number & ~oneInPlace) | bitInPlace; |
| 114 | } |
| 115 | |
| 116 | |
| 117 | INLINE int getBitMaskParity(qindex mask) { |
no outgoing calls
no test coverage detected