# HG changeset patch # User Mychaela Falconia # Date 1672715138 0 # Node ID 12d9d3649232330ad98f2ce263d88009c2732eb0 # Parent a4d1615e2aa4886f0aa47b50cd7ddcc4d7422aab libgsmefr/c1035pf.c: perf opt diff -r a4d1615e2aa4 -r 12d9d3649232 libgsmefr/c1035pf.c --- 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 ();