Mercurial > sdl-ios-xcode
comparison src/cpuinfo/SDL_cpuinfo.c @ 747:da36f59485da
Check for CPUID before checking for 3DNow!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2003 09:30:14 +0000 |
parents | 71ee03909f42 |
children | 06cdd106d61c |
comparison
equal
deleted
inserted
replaced
746:72ef7ce609ef | 747:da36f59485da |
---|---|
134 } | 134 } |
135 | 135 |
136 static __inline__ int CPU_have3DNow() | 136 static __inline__ int CPU_have3DNow() |
137 { | 137 { |
138 int has_3DNow = 0; | 138 int has_3DNow = 0; |
139 if ( !CPU_haveCPUID() ) { | |
140 return 0; | |
141 } | |
139 #if defined(__GNUC__) && defined(i386) | 142 #if defined(__GNUC__) && defined(i386) |
140 __asm__ ( | 143 __asm__ ( |
141 "push %%ebx\n" | 144 "push %%ebx\n" |
142 "push %%ecx\n" | 145 "push %%ecx\n" |
143 "push %%edx\n" | 146 "push %%edx\n" |