diff options
author | Spec-Chum <spec-chum@users.sourceforge.net> | 2010-02-17 23:45:14 +0300 |
---|---|---|
committer | Spec-Chum <spec-chum@users.sourceforge.net> | 2010-02-17 23:45:14 +0300 |
commit | ca07296023e9fec36dc590ac7f33727830dec0ab (patch) | |
tree | 42fdda38f6276f1ba6f945055cf5b5caedc3a008 /src/subtitles/Rasterizer.cpp | |
parent | 82622c8c69dcd975156ceef39d8b41c448b562d5 (diff) |
Partially revert rev1658. MMX intrinsics work perfectly fine with MSVC 64-bit builds
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1667 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/Rasterizer.cpp')
-rw-r--r-- | src/subtitles/Rasterizer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/subtitles/Rasterizer.cpp b/src/subtitles/Rasterizer.cpp index 7038b054d..e62d5ea1d 100644 --- a/src/subtitles/Rasterizer.cpp +++ b/src/subtitles/Rasterizer.cpp @@ -901,17 +901,14 @@ static __forceinline void pixmix2_sse2(DWORD* dst, DWORD color, DWORD shapealpha // Calculate a - b clamping to 0 instead of underflowing
static __forceinline DWORD safe_subtract(DWORD a, DWORD b)
{
-#ifndef _M_X64
__m64 ap = _mm_cvtsi32_si64(a);
__m64 bp = _mm_cvtsi32_si64(b);
__m64 rp = _mm_subs_pu16(ap, bp);
DWORD r = (DWORD)_mm_cvtsi64_si32(rp);
_mm_empty();
return r;
-#else
- // For whatever reason Microsoft's x64 compiler doesn't support MMX intrinsics
- return (b > a) ? 0 : a - b;
-#endif
+
+ // return (b > a) ? 0 : a - b;
}
// For CPUID usage in Rasterizer::Draw
@@ -1153,9 +1150,7 @@ CRect Rasterizer::Draw(SubPicDesc& spd, CRect& clipRect, byte* pAlphaMask, int x // Remember to EMMS!
// Rendering fails in funny ways if we don't do this.
-#ifndef _M_X64
_mm_empty();
-#endif
return bbox;
}
|