Intel P4 support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3841 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-12-28 18:23:35 +00:00
parent c45d0b11c1
commit 0d3f9a091d
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ void GetCpuCaps( CpuCaps *caps)
if (regs[0]>=0x80000001) {
printf("extended cpuid-level: %d\n",regs[0]&0x7FFFFFFF);
do_cpuid(0x80000001, regs2);
caps->hasMMX = (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
caps->hasMMX2 = (regs2[3] & (1 << 22 )) >> 22; // 0x400000
caps->hasMMX |= (regs2[3] & (1 << 23 )) >> 23; // 0x0800000
caps->hasMMX2 |= (regs2[3] & (1 << 22 )) >> 22; // 0x400000
caps->has3DNow = (regs2[3] & (1 << 31 )) >> 31; //0x80000000
caps->has3DNowExt = (regs2[3] & (1 << 30 )) >> 30;
}