aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 262c2551..e84454fb 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -109,6 +109,16 @@ void FillCPUCaps(ALuint capfilter)
#endif
}
}
+#elif defined(HAVE_WINDOWS_H)
+ BOOL (WINAPI*IsProcessorFeaturePresent)(DWORD ProcessorFeature);
+ IsProcessorFeaturePresent = GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsProcessorFeaturePresent");
+ if(!IsProcessorFeaturePresent)
+ ERR("IsProcessorFeaturePresent not available; CPU caps not detected\n");
+ else
+ {
+ if(IsProcessorFeaturePresent(6/*PF_XMMI_INSTRUCTIONS_AVAILABLE*/))
+ caps |= CPU_CAP_SSE;
+ }
#endif
#endif
#ifdef HAVE_NEON