MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / insertBitsWithMaskedValues

Function insertBitsWithMaskedValues

quest/src/core/bitwise.hpp:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206INLINE qindex insertBitsWithMaskedValues(qindex number, int* bitInds, int numBits, qindex mask) {
207
208 // bitInds must be sorted (increasing), and mask must be zero everywhere except bitInds
209 return mask | insertBits(number, bitInds, numBits, 0);
210}
211
212
213INLINE int getTwoBits(qindex number, int highInd, int lowInd) {

Calls 1

insertBitsFunction · 0.85

Tested by

no test coverage detected