Check for CPUID before checking for 3DNow!

This commit is contained in:
Sam Lantinga
2003-11-24 09:30:14 +00:00
parent 6c1f33bee2
commit 37366af6f8

View File

@@ -136,6 +136,9 @@ static __inline__ int CPU_haveMMX()
static __inline__ int CPU_have3DNow()
{
int has_3DNow = 0;
if ( !CPU_haveCPUID() ) {
return 0;
}
#if defined(__GNUC__) && defined(i386)
__asm__ (
"push %%ebx\n"