Lines Matching defs:pValueResult

501 DECLINLINE(PRTUINT128U) RTUInt128AssignBoolean(PRTUINT128U pValueResult, bool fValue)
504 pValueResult->s.Lo = fValue;
505 pValueResult->s.Hi = 0;
507 pValueResult->DWords.dw0 = fValue;
508 pValueResult->DWords.dw1 = 0;
509 pValueResult->DWords.dw2 = 0;
510 pValueResult->DWords.dw3 = 0;
512 return pValueResult;
523 DECLINLINE(PRTUINT128U) RTUInt128AssignU8(PRTUINT128U pValueResult, uint8_t u8Value)
526 pValueResult->s.Lo = u8Value;
527 pValueResult->s.Hi = 0;
529 pValueResult->DWords.dw0 = u8Value;
530 pValueResult->DWords.dw1 = 0;
531 pValueResult->DWords.dw2 = 0;
532 pValueResult->DWords.dw3 = 0;
534 return pValueResult;
545 DECLINLINE(PRTUINT128U) RTUInt128AssignU16(PRTUINT128U pValueResult, uint16_t u16Value)
548 pValueResult->s.Lo = u16Value;
549 pValueResult->s.Hi = 0;
551 pValueResult->DWords.dw0 = u16Value;
552 pValueResult->DWords.dw1 = 0;
553 pValueResult->DWords.dw2 = 0;
554 pValueResult->DWords.dw3 = 0;
556 return pValueResult;
567 DECLINLINE(PRTUINT128U) RTUInt128AssignU32(PRTUINT128U pValueResult, uint32_t u32Value)
570 pValueResult->s.Lo = u32Value;
571 pValueResult->s.Hi = 0;
573 pValueResult->DWords.dw0 = u32Value;
574 pValueResult->DWords.dw1 = 0;
575 pValueResult->DWords.dw2 = 0;
576 pValueResult->DWords.dw3 = 0;
578 return pValueResult;
589 DECLINLINE(PRTUINT128U) RTUInt128AssignU64(PRTUINT128U pValueResult, uint64_t u64Value)
591 pValueResult->s.Lo = u64Value;
592 pValueResult->s.Hi = 0;
593 return pValueResult;
731 * @returns pValueResult.
732 * @param pValueResult The value and result.
736 DECLINLINE(PRTUINT128U) RTUInt128AssignAndNFirstBits(PRTUINT128U pValueResult, unsigned cBits)
741 pValueResult->s.Lo &= (RT_BIT_64(cBits) - 1);
742 pValueResult->s.Hi = 0;
745 pValueResult->s.Hi &= (RT_BIT_64(cBits - 64) - 1);
747 return pValueResult;
840 DECLINLINE(PRTUINT128U) RTUInt128AssignShiftLeft(PRTUINT128U pValueResult, int cBits)
842 RTUINT128U const InVal = *pValueResult;
848 RTUInt128SetZero(pValueResult);
851 pValueResult->s.Lo = 0;
852 pValueResult->s.Hi = InVal.s.Lo << (cBits - 64);
856 pValueResult->s.Hi = InVal.s.Hi << cBits;
857 pValueResult->s.Hi |= InVal.s.Lo >> (64 - cBits);
858 pValueResult->s.Lo = InVal.s.Lo << cBits;
866 RTUInt128SetZero(pValueResult);
869 pValueResult->s.Hi = 0;
870 pValueResult->s.Lo = InVal.s.Hi >> (cBits - 64);
874 pValueResult->s.Lo = InVal.s.Lo >> cBits;
875 pValueResult->s.Lo |= InVal.s.Hi << (64 - cBits);
876 pValueResult->s.Hi = InVal.s.Hi >> cBits;
879 return pValueResult;
891 DECLINLINE(PRTUINT128U) RTUInt128AssignShiftRight(PRTUINT128U pValueResult, int cBits)
893 return RTUInt128AssignShiftLeft(pValueResult, -cBits);
901 * @returns pValueResult
902 * @param pValueResult The value and result.
904 DECLINLINE(PRTUINT128U) RTUInt128AssignBitwiseNot(PRTUINT128U pValueResult)
907 pValueResult->s.Hi = ~pValueResult->s.Hi;
908 pValueResult->s.Lo = ~pValueResult->s.Lo;
910 pValueResult->DWords.dw0 = ~pValueResult->DWords.dw0;
911 pValueResult->DWords.dw1 = ~pValueResult->DWords.dw1;
912 pValueResult->DWords.dw2 = ~pValueResult->DWords.dw2;
913 pValueResult->DWords.dw3 = ~pValueResult->DWords.dw3;
915 return pValueResult;
923 * @returns pValueResult
924 * @param pValueResult The value and result.
926 DECLINLINE(PRTUINT128U) RTUInt128AssignBooleanNot(PRTUINT128U pValueResult)
928 return RTUInt128AssignBoolean(pValueResult, RTUInt128IsZero(pValueResult));
1076 * @returns pValueResult.
1077 * @param pValueResult The input and output value.
1080 DECLINLINE(PRTUINT128U) RTUInt128BitSet(PRTUINT128U pValueResult, unsigned iBit)
1085 pValueResult->s.Lo |= RT_BIT_64(iBit);
1088 pValueResult->DWords.dw0 |= RT_BIT_32(iBit);
1090 pValueResult->DWords.dw1 |= RT_BIT_32(iBit - 32);
1096 pValueResult->s.Hi |= RT_BIT_64(iBit - 64);
1099 pValueResult->DWords.dw2 |= RT_BIT_32(iBit - 64);
1101 pValueResult->DWords.dw3 |= RT_BIT_32(iBit - 96);
1104 return pValueResult;
1111 * @returns pValueResult.
1112 * @param pValueResult The input and output value.
1115 DECLINLINE(PRTUINT128U) RTUInt128BitClear(PRTUINT128U pValueResult, unsigned iBit)
1120 pValueResult->s.Lo &= ~RT_BIT_64(iBit);
1123 pValueResult->DWords.dw0 &= ~RT_BIT_32(iBit);
1125 pValueResult->DWords.dw1 &= ~RT_BIT_32(iBit - 32);
1131 pValueResult->s.Hi &= ~RT_BIT_64(iBit - 64);
1134 pValueResult->DWords.dw2 &= ~RT_BIT_32(iBit - 64);
1136 pValueResult->DWords.dw3 &= ~RT_BIT_32(iBit - 96);
1139 return pValueResult;
1146 * @returns pValueResult.
1147 * @param pValueResult The input and output value.
1150 DECLINLINE(bool) RTUInt128BitTest(PRTUINT128U pValueResult, unsigned iBit)
1156 fRc = RT_BOOL(pValueResult->s.Lo & RT_BIT_64(iBit));
1159 fRc = RT_BOOL(pValueResult->DWords.dw0 & RT_BIT_32(iBit));
1161 fRc = RT_BOOL(pValueResult->DWords.dw1 & RT_BIT_32(iBit - 32));
1167 fRc = RT_BOOL(pValueResult->s.Hi & RT_BIT_64(iBit - 64));
1170 fRc = RT_BOOL(pValueResult->DWords.dw2 & RT_BIT_32(iBit - 64));
1172 fRc = RT_BOOL(pValueResult->DWords.dw3 & RT_BIT_32(iBit - 96));
1184 * @returns pValueResult.
1185 * @param pValueResult The input and output value.
1189 DECLINLINE(PRTUINT128U) RTUInt128BitSetRange(PRTUINT128U pValueResult, unsigned iFirstBit, unsigned cBits)
1199 pValueResult->s.Lo |= (RT_BIT_64(cBits) - 1) << iFirstBit;
1201 pValueResult->s.Hi |= (RT_BIT_64(cBits) - 1) << (iFirstBit - 64);
1205 pValueResult->DWords.dw0 |= (RT_BIT_32(cBits) - 1) << iFirstBit;
1207 pValueResult->DWords.dw1 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 32);
1209 pValueResult->DWords.dw2 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 64);
1211 pValueResult->DWords.dw3 |= (RT_BIT_32(cBits) - 1) << (iFirstBit - 96);
1215 RTUInt128BitSet(pValueResult, iFirstBit++);
1217 return pValueResult;