Browse Source

cpuid: fix for MSVC in cpuid_is_supported()

Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
Ahmed Samy 12 years ago
parent
commit
715de3cf27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/cpuid/cpuid.c

+ 2 - 2
ccan/cpuid/cpuid.c

@@ -160,8 +160,8 @@ bool cpuid_is_supported(void)
 		pushfd
 		pop eax
 		xor eax, ecx
-		shr eax, 0x21
-		and eax, 0x1
+		shr eax, 21
+		and eax, 1
 		push ecx
 		popfd