Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
cpuid doesn't actually change the flags register
  • Loading branch information
slouken committed Oct 30, 2009
1 parent 6ee369a commit e2d96c455532b5ad8bec8cc574160e3991f8c221
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/cpuinfo/SDL_cpuinfo.c
@@ -166,7 +166,7 @@ CPU_getCPUIDFeatures(void)
" popl %%ebx\n"
: "=m" (features)
:
: "%eax", "%ecx", "%edx", "cc"
: "%eax", "%ecx", "%edx"
);
#elif defined(__GNUC__) && defined(__x86_64__)
__asm__ (
@@ -183,7 +183,7 @@ CPU_getCPUIDFeatures(void)
" popq %%rbx\n"
: "=m" (features)
:
: "%rax", "%rcx", "%rdx", "cc"
: "%rax", "%rcx", "%rdx"
);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
__asm {
@@ -238,7 +238,7 @@ CPU_getCPUIDFeaturesExt(void)
" popl %%ebx\n"
: "=m" (features)
:
: "%eax", "%ecx", "%edx", "cc"
: "%eax", "%ecx", "%edx"
);
#elif defined(__GNUC__) && defined (__x86_64__)
__asm__ (
@@ -254,7 +254,7 @@ CPU_getCPUIDFeaturesExt(void)
" popq %%rbx\n"
: "=m" (features)
:
: "%rax", "%rcx", "%rdx", "cc"
: "%rax", "%rcx", "%rdx"
);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
__asm {

0 comments on commit e2d96c4

Please sign in to comment.