mirror of https://git.ffmpeg.org/ffmpeg.git
transmeta crusoe mmx detection by "Nobody/Anonymous - nobody" / sf feature request tracker
Originally committed as revision 3248 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
504c8380a3
commit
4c99f2cdbe
|
@ -114,6 +114,17 @@ int mm_support(void)
|
||||||
if (eax & 0x01000000)
|
if (eax & 0x01000000)
|
||||||
rval |= MM_MMXEXT;
|
rval |= MM_MMXEXT;
|
||||||
return rval;
|
return rval;
|
||||||
|
} else if (ebx == 0x756e6547 &&
|
||||||
|
edx == 0x54656e69 &&
|
||||||
|
ecx == 0x3638784d) {
|
||||||
|
/* Tranmeta Crusoe */
|
||||||
|
cpuid(0x80000000, eax, ebx, ecx, edx);
|
||||||
|
if ((unsigned)eax < 0x80000001)
|
||||||
|
return 0;
|
||||||
|
cpuid(0x80000001, eax, ebx, ecx, edx);
|
||||||
|
if ((edx & 0x00800000) == 0)
|
||||||
|
return 0;
|
||||||
|
return MM_MMX;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue