From 715de3cf272d057e176d032986db45d2270494fc Mon Sep 17 00:00:00 2001 From: Ahmed Samy Date: Thu, 7 Nov 2013 19:17:16 +0200 Subject: [PATCH] cpuid: fix for MSVC in cpuid_is_supported() Signed-off-by: Ahmed Samy --- ccan/cpuid/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/cpuid/cpuid.c b/ccan/cpuid/cpuid.c index 59f73363..df9b4aaf 100644 --- a/ccan/cpuid/cpuid.c +++ b/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 -- 2.39.2