mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
Fiix builderror in libsoundtouch (FreeBSD)
This commit is contained in:
parent
389a855466
commit
33ec79794e
1 changed files with 9 additions and 3 deletions
|
|
@ -253,9 +253,15 @@ uint FIRFilterSSE::evaluateFilterStereo(float *dest, const float *source, uint n
|
||||||
const uint filterLength = length;
|
const uint filterLength = length;
|
||||||
const float *coeffsAlign = filterCoeffsAlign;
|
const float *coeffsAlign = filterCoeffsAlign;
|
||||||
|
|
||||||
|
// filter is evaluated for two stereo samples with each iteration, thus use of 'j += 2'
|
||||||
|
const uint filterLength = length;
|
||||||
|
const float *coeffsAlign = filterCoeffsAlign;
|
||||||
|
|
||||||
// filter is evaluated for two stereo samples with each iteration, thus use of 'j += 2'
|
// filter is evaluated for two stereo samples with each iteration, thus use of 'j += 2'
|
||||||
#if defined(_OPENMP)
|
#if defined(_OPENMP)
|
||||||
#pragma omp parallel for default(none) shared(source, dest, count, coeffsAlign) private(j) schedule(static)
|
#pragma omp parallel for default(none) \
|
||||||
|
shared(source, dest, count, coeffsAlign, filterLength) \
|
||||||
|
private(j) schedule(static)
|
||||||
#endif
|
#endif
|
||||||
for (j = 0; j < count; j += 2)
|
for (j = 0; j < count; j += 2)
|
||||||
{
|
{
|
||||||
|
|
@ -267,8 +273,8 @@ uint FIRFilterSSE::evaluateFilterStereo(float *dest, const float *source, uint n
|
||||||
|
|
||||||
pSrc = (const float*)source + j * 2; // source audio data
|
pSrc = (const float*)source + j * 2; // source audio data
|
||||||
pDest = dest + j * 2; // destination audio data
|
pDest = dest + j * 2; // destination audio data
|
||||||
pFil = (const __m128*)coeffsAlign; // filter coefficients. NOTE: Assumes coefficients
|
pFil = (const __m128*)coeffsAlign;
|
||||||
// are aligned to 16-byte boundary
|
|
||||||
sum1 = sum2 = _mm_setzero_ps();
|
sum1 = sum2 = _mm_setzero_ps();
|
||||||
|
|
||||||
for (i = 0; i < filterLength / 8; i ++)
|
for (i = 0; i < filterLength / 8; i ++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue