cpuid doesn't actually change the flags register
authorSam Lantinga <slouken@libsdl.org>
Fri, 30 Oct 2009 05:02:47 +0000
changeset 3421 7bc83a9e09fd
parent 3420 935f36ec1844
child 3422 ec4db979dddb
cpuid doesn't actually change the flags register
src/cpuinfo/SDL_cpuinfo.c
--- a/src/cpuinfo/SDL_cpuinfo.c	Fri Oct 30 04:45:01 2009 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Fri Oct 30 05:02:47 2009 +0000
@@ -166,7 +166,7 @@
 "        popl    %%ebx\n"
 	: "=m" (features)
 	:
-	: "%eax", "%ecx", "%edx", "cc"
+	: "%eax", "%ecx", "%edx"
 	);
 #elif defined(__GNUC__) && defined(__x86_64__)
 	__asm__ (
@@ -183,7 +183,7 @@
 "        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 @@
 "        popl    %%ebx\n"
 	: "=m" (features)
 	:
-	: "%eax", "%ecx", "%edx", "cc"
+	: "%eax", "%ecx", "%edx"
 	);
 #elif defined(__GNUC__) && defined (__x86_64__)
 	__asm__ (
@@ -254,7 +254,7 @@
 "        popq    %%rbx\n"
 	: "=m" (features)
 	:
-	: "%rax", "%rcx", "%rdx", "cc"
+	: "%rax", "%rcx", "%rdx"
 	);
 #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
 	__asm {