aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-11 06:38:00 -0700
committerChris Robinson <[email protected]>2015-10-11 06:38:00 -0700
commit0211831858fe42b5a95f6992bbdc3d925d589a75 (patch)
tree7845ccbc2388623fe0a2aeebf0eb91d1fb2613ca /Alc/mixer.c
parent75d8e5989f737326b216b46e0a5184501fc8315f (diff)
Move the FIR4 from SSE2 to SSE3
SSE3 can avoid the slow _MM_TRANSPOSE_PS4 call thanks to the inclusion of horizontal adds.
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index fa060958..8061ab73 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -122,9 +122,9 @@ static inline ResamplerFunc SelectResampler(enum Resampler resampler)
if((CPUCapFlags&CPU_CAP_SSE4_1))
return Resample_fir4_32_SSE41;
#endif
-#ifdef HAVE_SSE2
- if((CPUCapFlags&CPU_CAP_SSE2))
- return Resample_fir4_32_SSE2;
+#ifdef HAVE_SSE3
+ if((CPUCapFlags&CPU_CAP_SSE3))
+ return Resample_fir4_32_SSE3;
#endif
return Resample_fir4_32_C;
case FIR6Resampler: