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 27b5661 commit 6d92794Copy full SHA for 6d92794
coresimd/x86/cpuid.rs
@@ -86,6 +86,14 @@ pub fn has_cpuid() -> bool {
86
}
87
#[cfg(target_arch = "x86")]
88
{
89
+ // Optimization for i586 and i686 Rust targets which SSE enabled
90
+ // and support cpuid:
91
+ #[cfg(target_feature = "sse")] {
92
+ true
93
+ }
94
+
95
+ // If SSE is not enabled, detect whether cpuid is available:
96
+ #[cfg(not(target_feature = "sse"))]
97
unsafe {
98
// On `x86` the `cpuid` instruction is not always available.
99
// This follows the approach indicated in:
0 commit comments