FreeCalypso > hg > gsm-codec-lib
changeset 186:12d9d3649232
libgsmefr/c1035pf.c: perf opt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 03 Jan 2023 03:05:38 +0000 |
parents | a4d1615e2aa4 |
children | 6ad363f7ea30 |
files | libgsmefr/c1035pf.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmefr/c1035pf.c Tue Jan 03 02:47:22 2023 +0000 +++ b/libgsmefr/c1035pf.c Tue Jan 03 03:05:38 2023 +0000 @@ -148,7 +148,7 @@ s = L_abs (s); test (); - if (L_sub (s, max) > (Word32) 0L) + if (s > max) max = s; move32 (); } tot = L_add (tot, L_shr (max, 1)); @@ -262,8 +262,8 @@ for (i = 1; i < NB_TRACK; i++) { - pos = add (pos, 1); - if (sub (pos, NB_TRACK) >= 0) + pos++; + if (pos >= NB_TRACK) { pos = 0; move16 (); } @@ -283,7 +283,7 @@ tmp = *ind; move16 (); test (); - if (sub (n, 5) < 0) + if (n < 5) { tmp = (tmp & 0x8) | gray[tmp & 0x7]; logic16 (); logic16 (); logic16 (); @@ -834,7 +834,7 @@ /* sign of 1st pulse == sign of 2nd pulse */ test (); - if (sub (indx[track], index) <= 0) + if (indx[track] <= index) { indx[track + 5] = index; move16 (); } @@ -850,7 +850,7 @@ /* sign of 1st pulse != sign of 2nd pulse */ test (); logic16 (); logic16 (); - if (sub ((indx[track] & 7), (index & 7)) <= 0) + if ((indx[track] & 7) <= (index & 7)) { indx[track + 5] = indx[track]; move16 ();