| 172 | |
| 173 | |
| 174 | INLINE qindex setBits(qindex number, int* bitIndices, int numIndices, qindex bitsValue) { |
| 175 | |
| 176 | // bitIndices are arbitrarily ordered, which does not affect number |
| 177 | for (int i=0; i<numIndices; i++) { |
| 178 | int bit = getBit(bitsValue, i); |
| 179 | number = setBit(number, bitIndices[i], bit); |
| 180 | } |
| 181 | |
| 182 | return number; |
| 183 | } |
| 184 | |
| 185 | |
| 186 | INLINE qindex getValueOfBits(qindex number, int* bitIndices, int numIndices) { |
no test coverage detected