diff options
author | Chris Robinson <[email protected]> | 2012-08-15 01:24:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-08-15 01:24:50 -0700 |
commit | c9e87a19a9b7ca3d82da9cba7b4064af23899149 (patch) | |
tree | 185034f111932ca25294e862feeee6fa929a07bc /Alc/ALc.c | |
parent | 3b87e29e63915000addb1e37994b30d167fcfb82 (diff) |
Add cmake options to disable or require support for CPU extensions
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |