diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-04-21 17:06:02 +0400 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-04-21 17:06:02 +0400 |
commit | f8a489cbf09b5ec09b7ceca8d2deb14ce8c45e87 (patch) | |
tree | 7400bbdc024391a474604a31307ae978c2808057 /libspeex/nb_celp.c | |
parent | c9555df56996d05533dfb1516b7901d5f86aaf4c (diff) |
16-bit cleanliness
git-svn-id: http://svn.xiph.org/trunk/speex@11200 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r-- | libspeex/nb_celp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index 1ec6137..bd8886c 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -748,7 +748,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits) for (i=0;i<st->lpcSize;i+=2) { /*pi_g += -st->interp_qlpc[i] + st->interp_qlpc[i+1];*/ - pi_g = ADD32(pi_g, SUB32(st->interp_qlpc[i+1],st->interp_qlpc[i])); + pi_g = ADD32(pi_g, SUB32(EXTEND32(st->interp_qlpc[i+1]),EXTEND32(st->interp_qlpc[i]))); } st->pi_gain[sub] = pi_g; } @@ -1779,7 +1779,7 @@ int nb_decode(void *state, SpeexBits *bits, void *vout) for (i=0;i<st->lpcSize;i+=2) { /*pi_g += -st->interp_qlpc[i] + st->interp_qlpc[i+1];*/ - pi_g = ADD32(pi_g, SUB32(st->interp_qlpc[i+1],st->interp_qlpc[i])); + pi_g = ADD32(pi_g, SUB32(EXTEND32(st->interp_qlpc[i+1]),EXTEND32(st->interp_qlpc[i]))); } st->pi_gain[sub] = pi_g; } |