Skip to content

Commit 99f9893

Browse files
committed
Workaround for clang
1 parent b5c5ef0 commit 99f9893

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

include/private/dsp/arch/x86/sse2/dynamics/compressor.h

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ namespace lsp
197197
IF_ARCH_X86(
198198
comp_knee_t knee[2] __lsp_aligned16;
199199
float mem[24] __lsp_aligned16;
200+
float stub[4] __lsp_aligned16;
200201
size_t mask;
201202
);
202203

@@ -259,6 +260,7 @@ namespace lsp
259260
: [comp] "r" (c),
260261
[knee] "o" (knee),
261262
[mem] "o" (mem),
263+
[stub] "o" (stub),
262264
[C2C] "o" (compressor_const),
263265
[L2C] "o" (LOG2_CONST),
264266
[LOGC] "o" (LOGE_C),
@@ -275,22 +277,10 @@ namespace lsp
275277
IF_ARCH_X86(
276278
comp_knee_t knee[2] __lsp_aligned16;
277279
float mem[24] __lsp_aligned16;
280+
float stub[4] __lsp_aligned16;
278281
size_t mask;
279282
);
280-
// for (size_t i=0; i<count; ++i)
281-
// {
282-
// float x = fabsf(src[i]);
283-
// float lx = logf(x);
284-
//
285-
// float g1 = (x <= c->k[0].start) ? c->k[0].gain :
286-
// (x >= c->k[0].end) ? expf(lx * c->k[0].tilt[0] + c->k[0].tilt[1]) :
287-
// expf((c->k[0].herm[0]*lx + c->k[0].herm[1])*lx + c->k[0].herm[2]);
288-
// float g2 = (x <= c->k[1].start) ? c->k[1].gain :
289-
// (x >= c->k[1].end) ? expf(lx * c->k[1].tilt[0] + c->k[1].tilt[1]) :
290-
// expf((c->k[1].herm[0]*lx + c->k[1].herm[1])*lx + c->k[1].herm[2]);
291-
//
292-
// dst[i] = g1 * g2 * x;
293-
// }
283+
294284
ARCH_X86_ASM
295285
(
296286
// Prepare stuff
@@ -358,6 +348,7 @@ namespace lsp
358348
: [comp] "r" (c),
359349
[knee] "o" (knee),
360350
[mem] "o" (mem),
351+
[stub] "o" (stub),
361352
[C2C] "o" (compressor_const),
362353
[L2C] "o" (LOG2_CONST),
363354
[LOGC] "o" (LOGE_C),

0 commit comments

Comments
 (0)