diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-15 22:28:55 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-15 22:28:55 +0000 |
commit | 4da7cc781d0ea0729b6537a7fba5858ee4ad5f91 (patch) | |
tree | 1300b74ed87904f8b32ac69008dc490b50ad9431 /mp3lib | |
parent | 9d6fe0253b66abedf117d3294732df23979cfa36 (diff) | |
download | mpv-4da7cc781d0ea0729b6537a7fba5858ee4ad5f91.tar.bz2 mpv-4da7cc781d0ea0729b6537a7fba5858ee4ad5f91.tar.xz |
Applied cpu detection fix by Kjetil Torgrim Homme <kjetilho at linpro dot no>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1895 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r-- | mp3lib/d_cpu.s | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mp3lib/d_cpu.s b/mp3lib/d_cpu.s index 0481521630..5b6988bee1 100644 --- a/mp3lib/d_cpu.s +++ b/mp3lib/d_cpu.s @@ -103,18 +103,21 @@ a3dnow: movl $0x80000000,%eax cpuid cmpl $0x80000000,%eax - jbe exit2 + jbe no3dnow movl $0x80000001,%eax cpuid xorl %eax,%eax testl $0x80000000,%edx - jz exit2 + jz no3dnow /// eax=1 - K6 3DNow! inc %eax testl $0x40000000,%edx jz exit2 /// eax=2 - K7 3DNowEx! orl $2, %eax + jmp exit2 +no3dnow: + xorl %eax,%eax exit2: popl %ecx |