diff options
author | Timothy Arceri <[email protected]> | 2014-06-04 02:57:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-06-06 07:15:00 -0700 |
commit | fc0be88c0f8d3d8887edd2afac915840f4e3f5e4 (patch) | |
tree | dbe626f58eff02c0b34ddaa7ec09fa3de4c10f35 /Alc/mixer_defs.h | |
parent | 3b2fcb3ef6f00d026f06ca154060b29ded3eb3fc (diff) |
Add SSE2 and SSE4.1 linear resamplers
Currently the only way SSE 4.1 is detected is by using __get_cpuid, i.e. with
GCC. Windows' IsProcessorFeaturePresent does not report SSE4.1 capabilities.
Diffstat (limited to 'Alc/mixer_defs.h')
-rw-r--r-- | Alc/mixer_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/mixer_defs.h b/Alc/mixer_defs.h index 04fd1f53..94e0b24f 100644 --- a/Alc/mixer_defs.h +++ b/Alc/mixer_defs.h @@ -42,6 +42,12 @@ void MixSend_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, struct MixGainMono *Gain, ALuint Counter, ALuint OutPos, ALuint BufferSize); +/* SSE resamplers */ +const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint increment, + ALfloat *restrict dst, ALuint numsamples); +const ALfloat *Resample_lerp32_SSE41(const ALfloat *src, ALuint frac, ALuint increment, + ALfloat *restrict dst, ALuint numsamples); + /* Neon mixers */ void MixDirect_Hrtf_Neon(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, ALuint Counter, ALuint Offset, ALuint OutPos, const ALuint IrSize, |