mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
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
This commit is contained in:
parent
9d6fe0253b
commit
4da7cc781d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user