diff options
author | Chris Robinson <[email protected]> | 2012-08-29 01:56:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-08-29 01:56:04 -0700 |
commit | 3c042a054d3cf714959ec58d81e77fc6d8cbb650 (patch) | |
tree | 54d059752660607c040f8c62e082a979a1959857 /Alc/mixer_neon.c | |
parent | 332d66c18301b913d46e22fd24c3d4782bea1568 (diff) |
Add an SSE-enhanced path for applying the mixer matrix
Diffstat (limited to 'Alc/mixer_neon.c')
-rw-r--r-- | Alc/mixer_neon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c index b550b837..bcdbf9b8 100644 --- a/Alc/mixer_neon.c +++ b/Alc/mixer_neon.c @@ -53,6 +53,15 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2], } } + +static __inline void ApplyValue(ALfloat *RESTRICT Output, ALfloat value, const ALfloat *DrySend) +{ + ALuint c; + for(c = 0;c < MaxChannels;c++) + Output[c] += value*DrySend[c]; +} + + #define SUFFIX Neon #define SAMPLER point32 #include "mixer_inc.c" |