FreeCalypso > hg > gsm-codec-lib
changeset 194:f151d6c18b31
libgsmefr/enc_lag6.c: perf opt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 04 Jan 2023 03:36:39 +0000 |
parents | cf39a90f5196 |
children | 827661987b41 |
files | libgsmefr/enc_lag6.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmefr/enc_lag6.c Wed Jan 04 03:22:35 2023 +0000 +++ b/libgsmefr/enc_lag6.c Wed Jan 04 03:36:39 2023 +0000 @@ -61,7 +61,7 @@ /* encode pitch delay (with fraction) */ test (); - if (sub (T0, 94) <= 0) + if (T0 <= 94) { /* index = T0*6 - 105 + *T0_frac */ i = add (add (T0, T0), T0); @@ -76,13 +76,13 @@ *T0_min = sub (T0, 5); move16 (); test (); - if (sub (*T0_min, pit_min) < 0) + if (*T0_min < pit_min) { *T0_min = pit_min; move16 (); } *T0_max = add (*T0_min, 9); test (); - if (sub (*T0_max, pit_max) > 0) + if (*T0_max > pit_max) { *T0_max = pit_max; move16 (); *T0_min = sub (*T0_max, 9); move16 ();