From c9e87a19a9b7ca3d82da9cba7b4064af23899149 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 15 Aug 2012 01:24:50 -0700 Subject: Add cmake options to disable or require support for CPU extensions --- Alc/ALc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Alc/ALc.c') diff --git a/Alc/ALc.c b/Alc/ALc.c index 14a74a92..ee2bd8a9 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -791,7 +791,13 @@ static void alc_initconfig(void) ReadALConfig(); - capfilter = CPU_CAP_ALL; + capfilter = 0; +#ifdef HAVE_SSE + capfilter |= CPU_CAP_SSE; +#endif +#ifdef HAVE_NEON + capfilter |= CPU_CAP_NEON; +#endif if(ConfigValueStr(NULL, "disable-cpu-exts", &str)) { if(strcasecmp(str, "all") == 0) -- cgit v1.2.3