1
0
mirror of https://github.com/google/cpu_features.git synced 2025-08-14 18:30:13 +02:00

Fix list_cpu_features.exe does not detect SSE42 on Xeon X5650 (Windows) (#220)

This commit is contained in:
Mykola Hohsadze
2022-01-31 11:15:17 +02:00
committed by GitHub
parent 2f5a7bf80a
commit f1801f0ca1
6 changed files with 44 additions and 6 deletions

View File

@@ -42,7 +42,8 @@ static void OverrideOsPreserves(OsPreserves* os_preserves) {
os_preserves->avx512_registers = GetDarwinSysCtlByName("hw.optional.avx512f");
}
static void DetectFeaturesFromOs(X86Features* features) {
static void DetectFeaturesFromOs(X86Info* info, X86Features* features) {
(void)info;
// Handling Darwin platform through sysctlbyname.
features->sse = GetDarwinSysCtlByName("hw.optional.sse");
features->sse2 = GetDarwinSysCtlByName("hw.optional.sse2");