# HG changeset patch # User Mychaela Falconia # Date 1672718336 0 # Node ID 7dd6336e15b215e331e4e1bfedf7d0fb0d92e457 # Parent 9b07190a6d08ae1afe3bfe222609255bb865133d libgsmefr/dec_12k2.c: perf opt diff -r 9b07190a6d08 -r 7dd6336e15b2 libgsmefr/dec_12k2.c --- 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++) {