Skip to content

Commit

Permalink
NEON mixer: Change vaddq_f32 to vaddq_s32 (Thank you Clang)
Browse files Browse the repository at this point in the history
Co-Authored-By: Kelpsy <[email protected]>
  • Loading branch information
wheremyfoodat and kelpsyberry committed Nov 20, 2024
1 parent 3df63be commit b78450c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/audio/dsp_simd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace DSP::MixIntoQuad {
// Multiply samples by their respective gains, truncate the result, and add it into the intermediate mix buffer
int32x4_t offset = vcvtq_s32_f32(vmulq_f32(currentFrame, gains_));
int32x4_t intermediateMixPrev = vld1q_s32((s32*)&mix[sampleIndex][0]);
int32x4_t result = vaddq_f32(intermediateMixPrev, offset);
int32x4_t result = vaddq_s32(intermediateMixPrev, offset);
vst1q_s32((s32*)&mix[sampleIndex][0], result);
}
}
Expand Down

0 comments on commit b78450c

Please sign in to comment.