]> git.ozlabs.org Git - ccan/blobdiff - ccan/cpuid/cpuid.c
cpuid: fix for MSVC in cpuid_is_supported()
[ccan] / ccan / cpuid / cpuid.c
index 59f7336346cb420e1c162a8d94e0610b15307d08..df9b4aafc530268f96280e9bf52260c7477765dc 100644 (file)
@@ -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