We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f3228 commit 9d60edcCopy full SHA for 9d60edc
src/x86/misc.rs
@@ -67,9 +67,10 @@ pub unsafe fn popfd(eflags: u32) {
67
/// Does the host support the `cpuid` instruction?
68
#[inline(always)]
69
pub fn has_cpuid() -> bool {
70
- if cfg!(target_arch = "x86_64") {
+ #[cfg(target_arch = "x86_64")] {
71
true
72
- } else {
+ }
73
+ #[cfg(target_arch = "x86")] {
74
// On `x86` the `cpuid` instruction is not always available.
75
// This follows the approach indicated in:
76
// http://wiki.osdev.org/CPUID#Checking_CPUID_availability
0 commit comments