]> git.ozlabs.org Git - ccan/commitdiff
cpuid: fix for MSVC in cpuid_is_supported()
authorAhmed Samy <f.fallen45@gmail.com>
Thu, 7 Nov 2013 17:17:16 +0000 (19:17 +0200)
committerAhmed Samy <f.fallen45@gmail.com>
Thu, 7 Nov 2013 17:17:16 +0000 (19:17 +0200)
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
ccan/cpuid/cpuid.c

index 59f7336346cb420e1c162a8d94e0610b15307d08..df9b4aafc530268f96280e9bf52260c7477765dc 100644 (file)
@@ -160,8 +160,8 @@ bool cpuid_is_supported(void)
                pushfd
                pop eax
                xor eax, ecx
                pushfd
                pop eax
                xor eax, ecx
-               shr eax, 0x21
-               and eax, 0x1
+               shr eax, 21
+               and eax, 1
                push ecx
                popfd
 
                push ecx
                popfd