Lines Matching refs:iFirstBit
1186 * @param iFirstBit The first bit to test.
1189 DECLINLINE(PRTUINT128U) RTUInt128BitSetRange(PRTUINT128U pValueResult, unsigned iFirstBit, unsigned cBits)
1192 if (iFirstBit < 128)
1194 if (iFirstBit + cBits > 128)
1195 cBits = 128 - iFirstBit;
1198 if (iFirstBit + cBits < 64)
1199 pValueResult->s.Lo |= (RT_BIT_64(cBits) - 1) << iFirstBit;
1200 else if (iFirstBit + cBits < 128 && iFirstBit >= 64)
1201 pValueResult->s.Hi |= (RT_BIT_64(cBits) - 1) << (iFirstBit - 64);
1204 if (iFirstBit + cBits < 32)
1205 pValueResult->DWords.dw0 |= (RT_BIT_32(cBits) - 1) << iFirstBit;
1206 else if (iFirstBit + cBits < 64 && iFirstBit >= 32)
1207 pValueResult->DWords.dw1 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 32);
1208 else if (iFirstBit + cBits < 96 && iFirstBit >= 64)
1209 pValueResult->DWords.dw2 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 64);
1210 else if (iFirstBit + cBits < 128 && iFirstBit >= 96)
1211 pValueResult->DWords.dw3 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 96);
1215 RTUInt128BitSet(pValueResult, iFirstBit++);