| 184 | |
| 185 | |
| 186 | INLINE qindex getValueOfBits(qindex number, int* bitIndices, int numIndices) { |
| 187 | |
| 188 | // bits are arbitrarily ordered, which affects value |
| 189 | qindex value = 0; |
| 190 | |
| 191 | for (int i=0; i<numIndices; i++) |
| 192 | value |= getBit(number, bitIndices[i]) << i; |
| 193 | |
| 194 | return value; |
| 195 | } |
| 196 | |
| 197 | |
| 198 |
no test coverage detected