Skip to content

Commit 3123d96

Browse files
committed
fix the shift
1 parent 5705c85 commit 3123d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coresimd/x86/cpuid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub unsafe fn __cpuid(leaf: u32) -> CpuidResult {
7878
}
7979

8080
/// Does the host support the `cpuid` instruction?
81-
#[inline]
81+
#[inline(never)]
8282
pub fn has_cpuid() -> bool {
8383
#[cfg(target_arch = "x86_64")]
8484
{
@@ -117,7 +117,7 @@ pub fn has_cpuid() -> bool {
117117
# So if the value of the 21st bit is 1, cpuid is available,
118118
# and if it is zero, it isn't because we didn't manage to
119119
# modify it:
120-
shrd %eax, 21
120+
shrl %eax, 21
121121
# Restore original eflags
122122
popfd
123123
"#

0 commit comments

Comments
 (0)