diff --git a/Core/Libraries/Source/WWVegas/WWMath/wwmath.h b/Core/Libraries/Source/WWVegas/WWMath/wwmath.h index 8adda21a796..07833b5225c 100644 --- a/Core/Libraries/Source/WWVegas/WWMath/wwmath.h +++ b/Core/Libraries/Source/WWVegas/WWMath/wwmath.h @@ -336,8 +336,10 @@ WWINLINE long WWMath::Float_To_Long(double f) { #if defined(_MSC_VER) && defined(_M_IX86) long retval; - __asm fld qword ptr [f] - __asm fistp dword ptr [retval] + __asm { + fld qword ptr [f] + fistp dword ptr [retval] + } return retval; #else return (long) f; diff --git a/Core/Libraries/Source/profile/internal.h b/Core/Libraries/Source/profile/internal.h index f657b98e94f..da88664213c 100644 --- a/Core/Libraries/Source/profile/internal.h +++ b/Core/Libraries/Source/profile/internal.h @@ -58,20 +58,24 @@ class ProfileFastCS #define ts_lock _emit 0xF0 DASSERT(((unsigned)&nFlag % 4) == 0); - __asm mov ebx, [nFlag] - __asm ts_lock - __asm bts dword ptr [ebx], 0 - __asm jc The_Bit_Was_Previously_Set_So_Try_Again + __asm { + mov ebx, [nFlag] + ts_lock + bts dword ptr [ebx], 0 + jc The_Bit_Was_Previously_Set_So_Try_Again + } return; The_Bit_Was_Previously_Set_So_Try_Again: // can't use SwitchToThread() here because Win9X doesn't have it! if (testEvent) ::WaitForSingleObject(testEvent,1); - __asm mov ebx, [nFlag] - __asm ts_lock - __asm bts dword ptr [ebx], 0 - __asm jc The_Bit_Was_Previously_Set_So_Try_Again + __asm { + mov ebx, [nFlag] + ts_lock + bts dword ptr [ebx], 0 + jc The_Bit_Was_Previously_Set_So_Try_Again + } } void ThreadSafeClearFlag()