FreeCalypso > hg > gsm-codec-lib
changeset 189:7dd6336e15b2
libgsmefr/dec_12k2.c: perf opt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 03 Jan 2023 03:58:56 +0000 |
parents | 9b07190a6d08 |
children | f387ee919f2c |
files | libgsmefr/dec_12k2.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmefr/dec_12k2.c Tue Jan 03 03:30:09 2023 +0000 +++ b/libgsmefr/dec_12k2.c Tue Jan 03 03:58:56 2023 +0000 @@ -130,9 +130,9 @@ if (bfi != 0) { - st->bf_state = add (st->bf_state, 1); + st->bf_state++; } - else if (sub (st->bf_state, 6) == 0) + else if (st->bf_state == 6) { st->bf_state = 5; } @@ -141,7 +141,7 @@ st->bf_state = 0; } - if (sub (st->bf_state, 6) > 0) + if (st->bf_state > 6) { st->bf_state = 6; } @@ -281,7 +281,7 @@ /* post processing of excitation elements */ test (); /* This test is not passed when SP_FLAG is 0 */ - if (sub (pit_sharp, 16384) > 0) + if (pit_sharp > 16384) { for (i = 0; i < L_SUBFR; i++) { @@ -317,7 +317,7 @@ move16 (); } - if (sub (pit_sharp, 16384) > 0) + if (pit_sharp > 16384) { for (i = 0; i < L_SUBFR; i++) {