We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 636dca6 commit 7779294Copy full SHA for 7779294
stdsimd/arch/detect/os/x86.rs
@@ -116,7 +116,6 @@ fn detect_features() -> cache::Initializer {
116
117
enable(proc_info_ecx, 0, Feature::sse3);
118
enable(proc_info_ecx, 9, Feature::ssse3);
119
- enable(proc_info_ecx, 12, Feature::fma);
120
enable(proc_info_ecx, 19, Feature::sse4_1);
121
enable(proc_info_ecx, 20, Feature::sse4_2);
122
enable(proc_info_ecx, 23, Feature::popcnt);
@@ -189,6 +188,9 @@ fn detect_features() -> cache::Initializer {
189
188
enable(proc_extended_state1_eax, 3, Feature::xsaves);
190
}
191
+ // FMA (uses 256-bit wide registers):
192
+ enable(proc_info_ecx, 12, Feature::fma);
193
+
194
// And AVX/AVX2:
195
enable(proc_info_ecx, 28, Feature::avx);
196
enable(extended_features_ebx, 5, Feature::avx2);
0 commit comments