Mercurial > libavcodec.hg
changeset 6383:7ba06222bda7 libavcodec
Disabling all SSE* code for old gcc to avoid alignment issues.
author | michael |
---|---|
date | Thu, 21 Feb 2008 00:06:07 +0000 |
parents | ca7cacd556ff |
children | 0a403ade8c81 |
files | i386/cputest.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/cputest.c Wed Feb 20 20:24:38 2008 +0000 +++ b/i386/cputest.c Thu Feb 21 00:06:07 2008 +0000 @@ -82,13 +82,17 @@ if (std_caps & (1<<23)) rval |= FF_MM_MMX; if (std_caps & (1<<25)) - rval |= FF_MM_MMXEXT | FF_MM_SSE; + rval |= FF_MM_MMXEXT +#if !defined(__GNUC__) || __GNUC__ > 2 + | FF_MM_SSE; if (std_caps & (1<<26)) rval |= FF_MM_SSE2; if (ecx & 1) rval |= FF_MM_SSE3; if (ecx & 0x00000200 ) - rval |= FF_MM_SSSE3; + rval |= FF_MM_SSSE3 +#endif + ; } cpuid(0x80000000, max_ext_level, ebx, ecx, edx);