File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
include/private/dsp/arch/x86/sse2/dynamics Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ namespace lsp
197
197
IF_ARCH_X86 (
198
198
comp_knee_t knee[2 ] __lsp_aligned16;
199
199
float mem[24 ] __lsp_aligned16;
200
+ float stub[4 ] __lsp_aligned16;
200
201
size_t mask;
201
202
);
202
203
@@ -259,6 +260,7 @@ namespace lsp
259
260
: [comp] " r" (c),
260
261
[knee] " o" (knee),
261
262
[mem] " o" (mem),
263
+ [stub] " o" (stub),
262
264
[C2C] " o" (compressor_const),
263
265
[L2C] " o" (LOG2_CONST),
264
266
[LOGC] " o" (LOGE_C),
@@ -275,22 +277,10 @@ namespace lsp
275
277
IF_ARCH_X86 (
276
278
comp_knee_t knee[2 ] __lsp_aligned16;
277
279
float mem[24 ] __lsp_aligned16;
280
+ float stub[4 ] __lsp_aligned16;
278
281
size_t mask;
279
282
);
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
+
294
284
ARCH_X86_ASM
295
285
(
296
286
// Prepare stuff
@@ -358,6 +348,7 @@ namespace lsp
358
348
: [comp] " r" (c),
359
349
[knee] " o" (knee),
360
350
[mem] " o" (mem),
351
+ [stub] " o" (stub),
361
352
[C2C] " o" (compressor_const),
362
353
[L2C] " o" (LOG2_CONST),
363
354
[LOGC] " o" (LOGE_C),
You can’t perform that action at this time.
0 commit comments