Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-12-30 03:31:17 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-12-30 03:31:17 +0400
commit05291fd6a699cf384e578368231be928abbc5c52 (patch)
treec2f01f844a56adbe909c6d5b97776e9159522014 /celt/celt.c
parent30f52cbe2d036dc88a16c0e9e4ccf38a2074f808 (diff)
Fixed-point: slight accuracy improvement in the comb filter
Diffstat (limited to 'celt/celt.c')
-rw-r--r--celt/celt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/celt/celt.c b/celt/celt.c
index 3e0ce6e6..4f9c9e05 100644
--- a/celt/celt.c
+++ b/celt/celt.c
@@ -131,12 +131,12 @@ void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N,
OPUS_MOVE(y, x, N);
return;
}
- g00 = MULT16_16_Q15(g0, gains[tapset0][0]);
- g01 = MULT16_16_Q15(g0, gains[tapset0][1]);
- g02 = MULT16_16_Q15(g0, gains[tapset0][2]);
- g10 = MULT16_16_Q15(g1, gains[tapset1][0]);
- g11 = MULT16_16_Q15(g1, gains[tapset1][1]);
- g12 = MULT16_16_Q15(g1, gains[tapset1][2]);
+ g00 = MULT16_16_P15(g0, gains[tapset0][0]);
+ g01 = MULT16_16_P15(g0, gains[tapset0][1]);
+ g02 = MULT16_16_P15(g0, gains[tapset0][2]);
+ g10 = MULT16_16_P15(g1, gains[tapset1][0]);
+ g11 = MULT16_16_P15(g1, gains[tapset1][1]);
+ g12 = MULT16_16_P15(g1, gains[tapset1][2]);
x1 = x[-T1+1];
x2 = x[-T1 ];
x3 = x[-T1-1];