FreeCalypso > hg > gsm-codec-lib
annotate libtwamr/namespace.h @ 287:f00925b533b7
gsmfr-encode: convert to libgsmfr2
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Apr 2024 06:16:47 +0000 |
parents | 07f936338de1 |
children | 8dfb7cbe6b59 |
rev | line source |
---|---|
38
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * The code from ETSI consists of many separate modules and lots of little |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * functions; if we were to keep all those global function names untreated, |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * our library would cause horrible namespace pollution for any application |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 * linking with it. Our current solution: we include this header in all |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 * internal modules, transforming the names of all internal functions |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 * with intermodule linkage. |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 */ |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
10 #ifndef namespace_h |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
11 #define namespace_h |
38
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
13 #define Overflow AMR__Overflow |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
14 #define Carry AMR__Carry |
39
36e1363ad885
libgsmefr: initial import of ETSI header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
15 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
16 #define add AMR__add |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
17 #define sub AMR__sub |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
18 #define abs_s AMR__abs_s |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
19 #define shl AMR__shl |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
20 #define shr AMR__shr |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
21 #define mult AMR__mult |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
22 #define L_mult AMR__L_mult |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
23 #define negate AMR__negate |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
24 #define extract_h AMR__extract_h |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
25 #define extract_l AMR__extract_l |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
26 #define round AMR__round |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
27 #define L_mac AMR__L_mac |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
28 #define L_msu AMR__L_msu |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
29 #define L_macNs AMR__L_macNs |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
30 #define L_msuNs AMR__L_msuNs |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
31 #define L_add AMR__L_add |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
32 #define L_sub AMR__L_sub |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
33 #define L_add_c AMR__L_add_c |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
34 #define L_sub_c AMR__L_sub_c |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
35 #define L_negate AMR__L_negate |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
36 #define mult_r AMR__mult_r |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
37 #define L_shl AMR__L_shl |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
38 #define L_shr AMR__L_shr |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
39 #define shr_r AMR__shr_r |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
40 #define mac_r AMR__mac_r |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
41 #define msu_r AMR__msu_r |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
42 #define L_deposit_h AMR__L_deposit_h |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
43 #define L_deposit_l AMR__L_deposit_l |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
44 #define L_shr_r AMR__L_shr_r |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
45 #define L_abs AMR__L_abs |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
46 #define L_sat AMR__L_sat |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
47 #define norm_m AMR__norm_s |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
48 #define div_s AMR__div_s |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
49 #define norm_l AMR__norm_l |
39
36e1363ad885
libgsmefr: initial import of ETSI header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
50 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
51 #define L_Extract AMR__L_Extract |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
52 #define L_Comp AMR__L_Comp |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
53 #define Mpy_32 AMR__Mpy_32 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
54 #define Mpy_32_16 AMR__Mpy_32_16 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
55 #define Div_32 AMR__Div_32 |
39
36e1363ad885
libgsmefr: initial import of ETSI header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
56 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
57 #define Inv_sqrt AMR__Inv_sqrt |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
58 #define Log2 AMR__Log2 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
59 #define Pow2 AMR__Pow2 |
39
36e1363ad885
libgsmefr: initial import of ETSI header files
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
60 |
253
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
61 #define A_Refl AMR__A_Refl |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
62 #define Autocorr AMR__Autocorr |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
63 #define Az_lsp AMR__Az_lsp |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
64 |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
65 #define agc_init AMR__agc_init |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
66 #define agc_reset AMR__agc_reset |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
67 #define agc_exit AMR__agc_exit |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
68 #define agc AMR__agc |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
69 #define agc2 AMR__agc2 |
255
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
70 #define pseudonoise AMR__pseudonoise |
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
71 #define build_CN_code AMR__build_CN_code |
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
72 #define build_CN_param AMR__build_CN_param |
253
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
73 |
254
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
74 #define Bits2prm AMR__Bits2prm |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
75 #define Prm2bits AMR__Prm2bits |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
76 |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
77 #define bitno AMR__bitno |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
78 #define prmno AMR__prmno |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
79 #define prmnofs AMR__prmnofs |
255
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
80 #define window_200_40 AMR__window_200_40 |
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
81 #define window_160_80 AMR__window_160_80 |
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
82 #define window_232_8 AMR__window_232_8 |
254
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
83 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
84 #endif /* include guard */ |