Skip to content
Snippets Groups Projects
Commit 57fc2576 authored by Francisco Javier Cabello Torres's avatar Francisco Javier Cabello Torres Committed by Michael Niedermayer
Browse files

via c3 detection patch by (Francisco Javier Cabello Torres <fjcabello at visual-tools dot com>)

Originally committed as revision 1275 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 525e51e8
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,21 @@ int mm_support(void)
if (edx & 0x00400000)
rval |= MM_MMXEXT;
return rval;
} else if (ebx == 0x746e6543 &&
edx == 0x48727561 &&
ecx == 0x736c7561) { /* "CentaurHauls" */
/* VIA C3 */
cpuid(0x80000000, eax, ebx, ecx, edx);
if ((unsigned)eax < 0x80000001)
goto inteltest;
cpuid(0x80000001, eax, ebx, ecx, edx);
rval = 0;
if( edx & ( 1 << 31) )
rval |= MM_3DNOW;
if( edx & ( 1 << 23) )
rval |= MM_MMX;
if( edx & ( 1 << 24) )
rval |= MM_MMXEXT;
} else if (ebx == 0x69727943 &&
edx == 0x736e4978 &&
ecx == 0x64616574) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment