Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check for CPUID before checking for 3DNow!
  • Loading branch information
slouken committed Nov 24, 2003
1 parent 83e36e7 commit 5fe6836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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"
Expand Down

0 comments on commit 5fe6836

Please sign in to comment.