mirror of
https://github.com/xiph/opus.git
synced 2025-05-29 06:39:15 +00:00
Turns a 16x32 multiply into a 16x16 one in celt_preemphasis().
This commit is contained in:
parent
65471dd567
commit
aed1009df9
1 changed files with 4 additions and 4 deletions
|
@ -520,11 +520,11 @@ void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RES
|
|||
{
|
||||
for (i=0;i<N;i++)
|
||||
{
|
||||
celt_sig x;
|
||||
x = SHL32(inp[i], SIG_SHIFT);
|
||||
opus_val16 x;
|
||||
x = inp[i];
|
||||
/* Apply pre-emphasis */
|
||||
inp[i] = x + m;
|
||||
m = - MULT16_32_Q15(coef0, x);
|
||||
inp[i] = SHL32(x, SIG_SHIFT) - m;
|
||||
m = SHR32(MULT16_16(coef0, x), 15-SIG_SHIFT);
|
||||
}
|
||||
}
|
||||
*mem = m;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue