summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-22 16:59:20 -0700
committerChris Robinson <[email protected]>2013-05-22 17:04:37 -0700
commit38a9e642df2b7359cfc453bf47b2d584ed428cda (patch)
tree742df56d0f0ce23e6c662f3ebf493620b0269f31 /Alc/ALc.c
parentb80efeb87d719fc87501e9042ff2bfe4bf38e739 (diff)
Check for SSE2 and set the denormals-are-zero bit for mixing if available
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index dfead761..4472d9e6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -845,7 +845,7 @@ static void alc_initconfig(void)
capfilter = 0;
#ifdef HAVE_SSE
- capfilter |= CPU_CAP_SSE;
+ capfilter |= CPU_CAP_SSE | CPU_CAP_SSE2;
#endif
#ifdef HAVE_NEON
capfilter |= CPU_CAP_NEON;
@@ -872,6 +872,8 @@ static void alc_initconfig(void)
len = (next ? ((size_t)(next-str)) : strlen(str));
if(strncasecmp(str, "sse", len) == 0)
capfilter &= ~CPU_CAP_SSE;
+ else if(strncasecmp(str, "sse2", len) == 0)
+ capfilter &= ~CPU_CAP_SSE2;
else if(strncasecmp(str, "neon", len) == 0)
capfilter &= ~CPU_CAP_NEON;
else