src/cpuinfo/SDL_cpuinfo.c
changeset 747 da36f59485da
parent 745 71ee03909f42
child 749 06cdd106d61c
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"