VirtualBox

Changeset 62398 in vbox


Ignore:
Timestamp:
Jul 21, 2016 1:36:29 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108948
Message:

iemAImpl_imul_u64: duh!

File:
1 edited

Legend:

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

    r62373 r62398  
    2323#include <VBox/vmm/vm.h>
    2424#include <iprt/x86.h>
    25 #ifdef RT_ARCH_X86
    26 # include <iprt/uint128.h>
    27 #endif
     25#include <iprt/uint128.h>
    2826
    2927
     
    11551153        if ((int64_t)*pu64RDX >= 0)
    11561154        {
    1157             RTUInt128MulU64ByU64(&Result, *pu64RAX, *pu64RDX);
     1155            RTUInt128MulU64ByU64(&Result, *pu64RAX, u64Factor);
    11581156            *pu64RAX = Result.s.Lo;
    11591157            *pu64RDX = Result.s.Hi;
     
    11631161        else
    11641162        {
    1165             RTUInt128MulU64ByU64(&Result, *pu64RAX, UINT64_C(0) - *pu64RDX);
     1163            RTUInt128MulU64ByU64(&Result, *pu64RAX, UINT64_C(0) - u64Factor);
    11661164            if (Result.s.Hi != 0 || Result.s.Lo > UINT64_C(0x8000000000000000))
    11671165                *pfEFlags |= X86_EFL_CF | X86_EFL_OF;
     
    11721170    else
    11731171    {
    1174         if ((int64_t)*pu64RDX >= 0)
    1175         {
    1176             RTUInt128MulU64ByU64(&Result, UINT64_C(0) - *pu64RAX, *pu64RDX);
     1172        if ((int64_t)u64Factor >= 0)
     1173        {
     1174            RTUInt128MulU64ByU64(&Result, UINT64_C(0) - *pu64RAX, u64Factor);
    11771175            if (Result.s.Hi != 0 || Result.s.Lo > UINT64_C(0x8000000000000000))
    11781176                *pfEFlags |= X86_EFL_CF | X86_EFL_OF;
     
    11821180        else
    11831181        {
    1184             RTUInt128MulU64ByU64(&Result, UINT64_C(0) - *pu64RAX, UINT64_C(0) - *pu64RDX);
     1182            RTUInt128MulU64ByU64(&Result, UINT64_C(0) - *pu64RAX, UINT64_C(0) - u64Factor);
    11851183            if (Result.s.Hi != 0 || Result.s.Lo >= UINT64_C(0x8000000000000000))
    11861184                *pfEFlags |= X86_EFL_CF | X86_EFL_OF;
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