VirtualBox

Changeset 62403 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 21, 2016 1:53:27 PM (9 years ago)
Author:
vboxsync
Message:

Added RTUInt128AssignNeg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/uint128.h

    r62401 r62403  
    657657{
    658658    /* result = 0 - value */
    659     if (pValue1Result->s.Lo != 0)
    660     {
    661         pValue1Result->s.Lo = UINT64_C(0) - pValue1Result->s.Lo;
    662         pValue1Result->s.Hi = UINT64_MAX  - pValue1Result->s.Hi;
     659    if (pValueResult->s.Lo != 0)
     660    {
     661        pValueResult->s.Lo = UINT64_C(0) - pValueResult->s.Lo;
     662        pValueResult->s.Hi = UINT64_MAX  - pValueResult->s.Hi;
    663663    }
    664664    else
    665         pValue1Result->s.Hi = UINT64_C(0) - pValue1Result->s.Hi;
    666     return pValue1Result;
     665        pValueResult->s.Hi = UINT64_C(0) - pValueResult->s.Hi;
     666    return pValueResult;
    667667}
    668668
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette