Lines Matching refs:iBit

779  * @param   iBit            The bit to set (0 based).
781 DECLINLINE(PRTUINT128U) RTUInt128AssignOrBit(PRTUINT128U pValue1Result, uint32_t iBit)
784 if (iBit >= 64)
785 pValue1Result->s.Hi |= RT_BIT_64(iBit - 64);
787 pValue1Result->s.Lo |= RT_BIT_64(iBit);
789 if (iBit >= 64)
791 if (iBit >= 96)
792 pValue1Result->DWords.dw3 |= RT_BIT_32(iBit - 96);
794 pValue1Result->DWords.dw2 |= RT_BIT_32(iBit - 64);
798 if (iBit >= 32)
799 pValue1Result->DWords.dw1 |= RT_BIT_32(iBit - 32);
801 pValue1Result->DWords.dw0 |= RT_BIT_32(iBit);
1078 * @param iBit The bit to set.
1080 DECLINLINE(PRTUINT128U) RTUInt128BitSet(PRTUINT128U pValueResult, unsigned iBit)
1082 if (iBit < 64)
1085 pValueResult->s.Lo |= RT_BIT_64(iBit);
1087 if (iBit < 32)
1088 pValueResult->DWords.dw0 |= RT_BIT_32(iBit);
1090 pValueResult->DWords.dw1 |= RT_BIT_32(iBit - 32);
1093 else if (iBit < 128)
1096 pValueResult->s.Hi |= RT_BIT_64(iBit - 64);
1098 if (iBit < 96)
1099 pValueResult->DWords.dw2 |= RT_BIT_32(iBit - 64);
1101 pValueResult->DWords.dw3 |= RT_BIT_32(iBit - 96);
1113 * @param iBit The bit to set.
1115 DECLINLINE(PRTUINT128U) RTUInt128BitClear(PRTUINT128U pValueResult, unsigned iBit)
1117 if (iBit < 64)
1120 pValueResult->s.Lo &= ~RT_BIT_64(iBit);
1122 if (iBit < 32)
1123 pValueResult->DWords.dw0 &= ~RT_BIT_32(iBit);
1125 pValueResult->DWords.dw1 &= ~RT_BIT_32(iBit - 32);
1128 else if (iBit < 128)
1131 pValueResult->s.Hi &= ~RT_BIT_64(iBit - 64);
1133 if (iBit < 96)
1134 pValueResult->DWords.dw2 &= ~RT_BIT_32(iBit - 64);
1136 pValueResult->DWords.dw3 &= ~RT_BIT_32(iBit - 96);
1148 * @param iBit The bit to test.
1150 DECLINLINE(bool) RTUInt128BitTest(PRTUINT128U pValueResult, unsigned iBit)
1153 if (iBit < 64)
1156 fRc = RT_BOOL(pValueResult->s.Lo & RT_BIT_64(iBit));
1158 if (iBit < 32)
1159 fRc = RT_BOOL(pValueResult->DWords.dw0 & RT_BIT_32(iBit));
1161 fRc = RT_BOOL(pValueResult->DWords.dw1 & RT_BIT_32(iBit - 32));
1164 else if (iBit < 128)
1167 fRc = RT_BOOL(pValueResult->s.Hi & RT_BIT_64(iBit - 64));
1169 if (iBit < 96)
1170 fRc = RT_BOOL(pValueResult->DWords.dw2 & RT_BIT_32(iBit - 64));
1172 fRc = RT_BOOL(pValueResult->DWords.dw3 & RT_BIT_32(iBit - 96));