cpuid doesn't actually change the flags register
authorSam Lantinga <slouken@libsdl.org>
Fri, 30 Oct 2009 05:02:47 +0000
changeset 34217bc83a9e09fd
parent 3420 935f36ec1844
child 3422 ec4db979dddb
cpuid doesn't actually change the flags register
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Fri Oct 30 04:45:01 2009 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Fri Oct 30 05:02:47 2009 +0000
     1.3 @@ -166,7 +166,7 @@
     1.4  "        popl    %%ebx\n"
     1.5  	: "=m" (features)
     1.6  	:
     1.7 -	: "%eax", "%ecx", "%edx", "cc"
     1.8 +	: "%eax", "%ecx", "%edx"
     1.9  	);
    1.10  #elif defined(__GNUC__) && defined(__x86_64__)
    1.11  	__asm__ (
    1.12 @@ -183,7 +183,7 @@
    1.13  "        popq    %%rbx\n"
    1.14  	: "=m" (features)
    1.15  	:
    1.16 -	: "%rax", "%rcx", "%rdx", "cc"
    1.17 +	: "%rax", "%rcx", "%rdx"
    1.18  	);
    1.19  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.20  	__asm {
    1.21 @@ -238,7 +238,7 @@
    1.22  "        popl    %%ebx\n"
    1.23  	: "=m" (features)
    1.24  	:
    1.25 -	: "%eax", "%ecx", "%edx", "cc"
    1.26 +	: "%eax", "%ecx", "%edx"
    1.27  	);
    1.28  #elif defined(__GNUC__) && defined (__x86_64__)
    1.29  	__asm__ (
    1.30 @@ -254,7 +254,7 @@
    1.31  "        popq    %%rbx\n"
    1.32  	: "=m" (features)
    1.33  	:
    1.34 -	: "%rax", "%rcx", "%rdx", "cc"
    1.35 +	: "%rax", "%rcx", "%rdx"
    1.36  	);
    1.37  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.38  	__asm {