Mercurial > libavcodec.hg
changeset 2092:58b6b0ce1c20 libavcodec
transmeta crusoe mmx detection by "Nobody/Anonymous - nobody" / sf feature request tracker
author | michael |
---|---|
date | Thu, 24 Jun 2004 22:13:44 +0000 |
parents | 02a4fd7c606c |
children | 82816cad0e29 |
files | i386/cputest.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/cputest.c Tue Jun 22 21:14:01 2004 +0000 +++ b/i386/cputest.c Thu Jun 24 22:13:44 2004 +0000 @@ -114,6 +114,17 @@ if (eax & 0x01000000) rval |= MM_MMXEXT; 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 { return 0; }