mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
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
This commit is contained in:
parent
6e4673d5e7
commit
5c53460817
@ -30,6 +30,7 @@ compileFlags = [
|
|||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-msse2',
|
'-msse2',
|
||||||
'-fvisibility=hidden',
|
'-fvisibility=hidden',
|
||||||
|
'-static',
|
||||||
#'-fomit-frame-pointer'
|
#'-fomit-frame-pointer'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -352,7 +352,8 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in
|
|||||||
return PC_TEX_FMT_BGRA32;
|
return PC_TEX_FMT_BGRA32;
|
||||||
case GX_TF_I4:
|
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 Lmask = _mm_set1_epi8 (0x0F);
|
||||||
__m128i Hmask = _mm_set1_epi8 (0xF0);
|
__m128i Hmask = _mm_set1_epi8 (0xF0);
|
||||||
__m128i* sseSrc = (__m128i *)src;
|
__m128i* sseSrc = (__m128i *)src;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user