diff options
author | Chris Robinson <[email protected]> | 2014-12-15 13:58:41 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-12-15 13:58:41 -0800 |
commit | 177dd956866aeed61e549f2163ac8beadd596ba1 (patch) | |
tree | fb27f6a551353ce7f21abcfd0b1011f8c614f7a0 /Alc/mixer.c | |
parent | a606bbc7f106b9e741a2e9c2a4726431699cb4ff (diff) |
Add SSE2 and SSE4.1 cubic resamplers
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index a11b44dd..87d94fff 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -103,6 +103,14 @@ static inline ResamplerFunc SelectResampler(enum Resampler resampler) #endif return Resample_lerp32_C; case CubicResampler: +#ifdef HAVE_SSE4_1 + if((CPUCapFlags&CPU_CAP_SSE4_1)) + return Resample_cubic32_SSE41; +#endif +#ifdef HAVE_SSE2 + if((CPUCapFlags&CPU_CAP_SSE2)) + return Resample_cubic32_SSE2; +#endif return Resample_cubic32_C; case ResamplerMax: /* Shouldn't happen */ |