src/cpuinfo/SDL_cpuinfo.c
changeset 887 b4b64bb88f2f
parent 881 9eb85a211abd
child 1152 51a8702d8ecd
equal deleted inserted replaced
886:05c551e5bc64 887:b4b64bb88f2f
   136 "        movl    %%edx,%0                                              \n"
   136 "        movl    %%edx,%0                                              \n"
   137 "1:                                                                    \n"
   137 "1:                                                                    \n"
   138 "        movl    %%edi,%%ebx\n"
   138 "        movl    %%edi,%%ebx\n"
   139 	: "=m" (features)
   139 	: "=m" (features)
   140 	:
   140 	:
   141 	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
   141 	: "%eax", "%ecx", "%edx", "%edi"
   142 	);
   142 	);
   143 #elif defined(_MSC_VER)
   143 #elif defined(_MSC_VER)
   144 	__asm {
   144 	__asm {
   145         xor     eax, eax            ; Set up for CPUID instruction
   145         xor     eax, eax            ; Set up for CPUID instruction
   146         cpuid                       ; Get and save vendor ID
   146         cpuid                       ; Get and save vendor ID
   171 "        movl    %%edx,%0                                              \n"
   171 "        movl    %%edx,%0                                              \n"
   172 "1:                                                                    \n"
   172 "1:                                                                    \n"
   173 "        movl    %%edi,%%ebx\n"
   173 "        movl    %%edi,%%ebx\n"
   174 	: "=m" (features)
   174 	: "=m" (features)
   175 	:
   175 	:
   176 	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
   176 	: "%eax", "%ecx", "%edx", "%edi"
   177 	);
   177 	);
   178 #elif defined(_MSC_VER)
   178 #elif defined(_MSC_VER)
   179 	__asm {
   179 	__asm {
   180         mov     eax,80000000h       ; Query for extended functions
   180         mov     eax,80000000h       ; Query for extended functions
   181         cpuid                       ; Get extended function limit
   181         cpuid                       ; Get extended function limit