Check for CPUID before checking for 3DNow!
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40748
This commit is contained in:
parent
15fabb637b
commit
6587e3fd91
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ static __inline__ int CPU_haveMMX()
|
||||||
static __inline__ int CPU_have3DNow()
|
static __inline__ int CPU_have3DNow()
|
||||||
{
|
{
|
||||||
int has_3DNow = 0;
|
int has_3DNow = 0;
|
||||||
|
if ( !CPU_haveCPUID() ) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#if defined(__GNUC__) && defined(i386)
|
#if defined(__GNUC__) && defined(i386)
|
||||||
__asm__ (
|
__asm__ (
|
||||||
"push %%ebx\n"
|
"push %%ebx\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue