diff --git a/Cargo.toml b/Cargo.toml index 2881df2..7adaedd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastant" -version = "0.1.10" +version = "0.1.11" edition = "2021" license = "MIT" description = "A drop-in replacement for `std::time::Instant` that measures time with high performance and high accuracy powered by Time Stamp Counter (TSC)." diff --git a/src/tsc_now.rs b/src/tsc_now.rs index fadcfcd..4e118d4 100644 --- a/src/tsc_now.rs +++ b/src/tsc_now.rs @@ -126,7 +126,7 @@ fn clock_source_has_tsc() -> bool { /// we should enable TSC if the system clock source is TSC. #[inline] fn has_invariant_tsc() -> bool { - #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] + #[cfg(target_arch = "x86_64")] unsafe { use core::arch::x86_64::__cpuid; let cpuid_invariant_tsc_bts = 1 << 8; @@ -134,7 +134,7 @@ fn has_invariant_tsc() -> bool { && __cpuid(0x80000007).edx & cpuid_invariant_tsc_bts != 0 } - #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(not(target_arch = "x86_64"))] false }