mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
vectorize mixdown loop of fluid_mixer_buffers_mix()
This commit is contained in:
parent
58008aae18
commit
b7cf79bc15
1 changed files with 4 additions and 0 deletions
|
@ -836,6 +836,7 @@ fluid_mixer_buffers_mix(fluid_mixer_buffers_t* dst, fluid_mixer_buffers_t* src)
|
|||
base_dst = fluid_align_ptr(dst->left_buf, FLUID_DEFAULT_ALIGNMENT);
|
||||
for (i=0; i < minbuf; i++)
|
||||
{
|
||||
#pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
|
||||
for (j=0; j < scount; j++)
|
||||
{
|
||||
int dsp_i = i * FLUID_MIXER_MAX_BUFFERS_DEFAULT * FLUID_BUFSIZE + j;
|
||||
|
@ -847,6 +848,7 @@ fluid_mixer_buffers_mix(fluid_mixer_buffers_t* dst, fluid_mixer_buffers_t* src)
|
|||
base_dst = fluid_align_ptr(dst->right_buf, FLUID_DEFAULT_ALIGNMENT);
|
||||
for (i=0; i < minbuf; i++)
|
||||
{
|
||||
#pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
|
||||
for (j=0; j < scount; j++)
|
||||
{
|
||||
int dsp_i = i * FLUID_MIXER_MAX_BUFFERS_DEFAULT * FLUID_BUFSIZE + j;
|
||||
|
@ -862,6 +864,7 @@ fluid_mixer_buffers_mix(fluid_mixer_buffers_t* dst, fluid_mixer_buffers_t* src)
|
|||
base_dst = fluid_align_ptr(dst->fx_left_buf, FLUID_DEFAULT_ALIGNMENT);
|
||||
for (i=0; i < minbuf; i++)
|
||||
{
|
||||
#pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
|
||||
for (j=0; j < scount; j++)
|
||||
{
|
||||
int dsp_i = i * FLUID_MIXER_MAX_BUFFERS_DEFAULT * FLUID_BUFSIZE + j;
|
||||
|
@ -873,6 +876,7 @@ fluid_mixer_buffers_mix(fluid_mixer_buffers_t* dst, fluid_mixer_buffers_t* src)
|
|||
base_dst = fluid_align_ptr(dst->fx_right_buf, FLUID_DEFAULT_ALIGNMENT);
|
||||
for (i=0; i < minbuf; i++)
|
||||
{
|
||||
#pragma omp simd aligned(base_dst,base_src:FLUID_DEFAULT_ALIGNMENT)
|
||||
for (j=0; j < scount; j++)
|
||||
{
|
||||
int dsp_i = i * FLUID_MIXER_MAX_BUFFERS_DEFAULT * FLUID_BUFSIZE + j;
|
||||
|
|
Loading…
Reference in a new issue