VirtualBox

Changeset 62404 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2016 1:55:07 PM (8 years ago)
Author:
vboxsync
Message:

iemAImpl_idiv_u64: Use RTUint128AssignNeg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp

    r62402 r62404  
    12441244         */
    12451245        RTUINT128U Dividend;
    1246         Dividend.s.Hi = 0;
    1247         if ((int64_t)*pu64RDX >= 0)
    1248         {
    1249             Dividend.s.Lo = *pu64RAX;
    1250             Dividend.s.Hi = *pu64RDX;
    1251         }
    1252         else
    1253         {
    1254             Dividend.s.Lo = UINT64_C(0) - *pu64RAX;
    1255             Dividend.s.Hi = UINT64_C(0) - *pu64RDX;
    1256         }
     1246        Dividend.s.Lo = *pu64RAX;
     1247        Dividend.s.Hi = *pu64RDX;
     1248        if ((int64_t)*pu64RDX < 0)
     1249            RTUInt128AssignNeg(&Dividend);
    12571250
    12581251        RTUINT128U Divisor;
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