FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/reorder.c @ 202:0faf23a9286f
libgsmefr/reorder.c: perf opt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 04 Jan 2023 04:54:02 +0000 |
parents | 9ad6bf2f1ee1 |
children |
comparison
equal
deleted
inserted
replaced
201:72cf52ba91f8 | 202:0faf23a9286f |
---|---|
26 | 26 |
27 lsf_min = min_dist; move16 (); | 27 lsf_min = min_dist; move16 (); |
28 for (i = 0; i < n; i++) | 28 for (i = 0; i < n; i++) |
29 { | 29 { |
30 test (); | 30 test (); |
31 if (sub (lsf[i], lsf_min) < 0) | 31 if (lsf[i] < lsf_min) |
32 { | 32 { |
33 lsf[i] = lsf_min; move16 (); | 33 lsf[i] = lsf_min; move16 (); |
34 } | 34 } |
35 lsf_min = add (lsf[i], min_dist); | 35 lsf_min = add (lsf[i], min_dist); |
36 } | 36 } |