src/cpuinfo/SDL_cpuinfo.c
changeset 9005 ef3ef3c8da98
parent 9004 51bc44d49052
child 9047 101109110bf7
equal deleted inserted replaced
9004:51bc44d49052 9005:ef3ef3c8da98
   251 #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
   251 #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
   252     __asm
   252     __asm
   253     {
   253     {
   254         xor ecx, ecx
   254         xor ecx, ecx
   255         _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
   255         _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
   256         mov a, xcr0
   256         mov a, eax
   257     }
   257     }
   258 #endif
   258 #endif
   259     return ((a & 6) == 6) ? SDL_TRUE : SDL_FALSE;
   259     return ((a & 6) == 6) ? SDL_TRUE : SDL_FALSE;
   260 }
   260 }
   261 
   261