diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-10-08 16:43:40 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-10-08 16:43:40 +0000 |
| commit | 5c534608175b83ff7a2acd7e13091eb33bf66fb0 (patch) | |
| tree | 1d7c611cc26d1cd8b4794a55ef1c32227eb7231c /Source/Core/VideoCommon/Src/TextureDecoder.cpp | |
| parent | 6e4673d5e79feaa159f3955683309f1fadaaf63e (diff) | |
Made the SSE work with GCC 4.3 and above, may also work with 4.2 and above
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@793 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureDecoder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index e859d86815..5d3f42662f 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -352,7 +352,8 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in return PC_TEX_FMT_BGRA32;
case GX_TF_I4:
{
-#ifdef _WIN32
+//Works in GCC 4.3 and above, possibly 4.2 and above
+#if (defined(_WIN32) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
__m128i Lmask = _mm_set1_epi8 (0x0F);
__m128i Hmask = _mm_set1_epi8 (0xF0);
__m128i* sseSrc = (__m128i *)src;
|
