projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce6f0f
)
cpuid: fix for MSVC in cpuid_is_supported()
author
Ahmed Samy
<f.fallen45@gmail.com>
Thu, 7 Nov 2013 17:17:16 +0000
(19:17 +0200)
committer
Ahmed 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
patch
|
blob
|
history
diff --git
a/ccan/cpuid/cpuid.c
b/ccan/cpuid/cpuid.c
index 59f7336346cb420e1c162a8d94e0610b15307d08..df9b4aafc530268f96280e9bf52260c7477765dc 100644
(file)
--- 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,
0x
21
- and eax,
0x
1
+ shr eax, 21
+ and eax, 1
push ecx
popfd