FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/az_lsp.c @ 56:902bc4b64cc6
libgsmefr: az_lsp.c compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 25 Nov 2022 17:15:08 +0000 |
parents | 49dd1ac8e75b |
children | a4d1615e2aa4 |
comparison
equal
deleted
inserted
replaced
55:92dc7f0082a3 | 56:902bc4b64cc6 |
---|---|
20 * - If less than 10 roots are found, the LSPs from the past frame are | 20 * - If less than 10 roots are found, the LSPs from the past frame are |
21 * used. | 21 * used. |
22 * | 22 * |
23 ***********************************************************************/ | 23 ***********************************************************************/ |
24 | 24 |
25 #include "gsm_efr.h" | |
25 #include "typedef.h" | 26 #include "typedef.h" |
27 #include "namespace.h" | |
26 #include "basic_op.h" | 28 #include "basic_op.h" |
27 #include "oper_32b.h" | 29 #include "oper_32b.h" |
28 #include "count.h" | 30 #include "no_count.h" |
29 #include "cnst.h" | 31 #include "cnst.h" |
32 #include "sig_proc.h" | |
30 | 33 |
31 #include "grid.tab" | 34 #include "grid.tab" |
32 | 35 |
33 /* M = LPC order, NC = M/2 */ | 36 /* M = LPC order, NC = M/2 */ |
34 | 37 |
95 xlow = grid[0]; move16 (); | 98 xlow = grid[0]; move16 (); |
96 ylow = Chebps (xlow, coef, NC);move16 (); | 99 ylow = Chebps (xlow, coef, NC);move16 (); |
97 | 100 |
98 j = 0; | 101 j = 0; |
99 test (); test (); | 102 test (); test (); |
100 /* while ( (nf < M) && (j < grid_points) ) */ | 103 while ( (nf < M) && (j < grid_points) ) |
101 while ((sub (nf, M) < 0) && (sub (j, grid_points) < 0)) | 104 /* while ((sub (nf, M) < 0) && (sub (j, grid_points) < 0)) */ |
102 { | 105 { |
103 j++; | 106 j++; |
104 xhigh = xlow; move16 (); | 107 xhigh = xlow; move16 (); |
105 yhigh = ylow; move16 (); | 108 yhigh = ylow; move16 (); |
106 xlow = grid[j]; move16 (); | 109 xlow = grid[j]; move16 (); |