diff options
author | Matthieu Castet <castet.matthieu@free.fr> | 2004-12-05 23:26:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-12-05 23:26:43 +0000 |
commit | e7ddb0cf4c02089486ba72e4fe94ec6a4e299738 (patch) | |
tree | e4124cc30544ef2b1304dc7f3c8f0996ef30b154 /libavcodec/i386/cputest.c | |
parent | 423962dc0105530852c9a25c478efbb8de9bcdf4 (diff) | |
download | ffmpeg-e7ddb0cf4c02089486ba72e4fe94ec6a4e299738.tar.gz |
detect sse on athlon-xp patch by (matthieu castet <castet >.< matthieu >at< free >.< fr>)
Originally committed as revision 3729 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/cputest.c')
-rw-r--r-- | libavcodec/i386/cputest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/i386/cputest.c b/libavcodec/i386/cputest.c index d2a3851911..d2694993e4 100644 --- a/libavcodec/i386/cputest.c +++ b/libavcodec/i386/cputest.c @@ -25,7 +25,7 @@ /* Function to test if multimedia instructions are supported... */ int mm_support(void) { - int rval; + int rval = 0; int eax, ebx, ecx, edx; long a, c; @@ -64,7 +64,7 @@ int mm_support(void) cpuid(1, eax, ebx, ecx, edx); if ((edx & 0x00800000) == 0) return 0; - rval = MM_MMX; + rval |= MM_MMX; if (edx & 0x02000000) rval |= MM_MMXEXT | MM_SSE; if (edx & 0x04000000) @@ -85,7 +85,7 @@ int mm_support(void) rval |= MM_3DNOW; if (edx & 0x00400000) rval |= MM_MMXEXT; - return rval; + goto inteltest; } else if (ebx == 0x746e6543 && edx == 0x48727561 && ecx == 0x736c7561) { /* "CentaurHauls" */ |