diff options
author | Chris Robinson <[email protected]> | 2013-05-22 16:59:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-22 17:04:37 -0700 |
commit | 38a9e642df2b7359cfc453bf47b2d584ed428cda (patch) | |
tree | 742df56d0f0ce23e6c662f3ebf493620b0269f31 /Alc/ALc.c | |
parent | b80efeb87d719fc87501e9042ff2bfe4bf38e739 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |