Commit ac1ab572 authored by michael's avatar michael

detect sse on athlon-xp patch by (matthieu castet <castet >.< matthieu >at< free >.< fr>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3729 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6258c185
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
/* Function to test if multimedia instructions are supported... */ /* Function to test if multimedia instructions are supported... */
int mm_support(void) int mm_support(void)
{ {
int rval; int rval = 0;
int eax, ebx, ecx, edx; int eax, ebx, ecx, edx;
long a, c; long a, c;
...@@ -64,7 +64,7 @@ int mm_support(void) ...@@ -64,7 +64,7 @@ int mm_support(void)
cpuid(1, eax, ebx, ecx, edx); cpuid(1, eax, ebx, ecx, edx);
if ((edx & 0x00800000) == 0) if ((edx & 0x00800000) == 0)
return 0; return 0;
rval = MM_MMX; rval |= MM_MMX;
if (edx & 0x02000000) if (edx & 0x02000000)
rval |= MM_MMXEXT | MM_SSE; rval |= MM_MMXEXT | MM_SSE;
if (edx & 0x04000000) if (edx & 0x04000000)
...@@ -85,7 +85,7 @@ int mm_support(void) ...@@ -85,7 +85,7 @@ int mm_support(void)
rval |= MM_3DNOW; rval |= MM_3DNOW;
if (edx & 0x00400000) if (edx & 0x00400000)
rval |= MM_MMXEXT; rval |= MM_MMXEXT;
return rval; goto inteltest;
} else if (ebx == 0x746e6543 && } else if (ebx == 0x746e6543 &&
edx == 0x48727561 && edx == 0x48727561 &&
ecx == 0x736c7561) { /* "CentaurHauls" */ ecx == 0x736c7561) { /* "CentaurHauls" */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment