FreeCalypso > hg > gsm-codec-lib
annotate libtwamr/namespace.h @ 314:15c354f75110
libtwamr: integrate set_sign.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 18 Apr 2024 16:58:25 +0000 |
parents | 8dfb7cbe6b59 |
children | 5401aaf7acb0 |
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 |
308
8dfb7cbe6b59
libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
255
diff
changeset
|
64 #define Bgn_scd AMR__Bgn_scd |
8dfb7cbe6b59
libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
255
diff
changeset
|
65 #define Bgn_scd_reset AMR__Bgn_scd_reset |
253
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
66 |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
67 #define agc AMR__agc |
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
68 #define agc2 AMR__agc2 |
308
8dfb7cbe6b59
libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
255
diff
changeset
|
69 #define agc_reset AMR__agc_reset |
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 |
308
8dfb7cbe6b59
libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
255
diff
changeset
|
73 #define gmed_n AMR__gmed_n |
8dfb7cbe6b59
libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
255
diff
changeset
|
74 #define sqrt_l_exp AMR__sqrt_l_exp |
314
15c354f75110
libtwamr: integrate set_sign.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
308
diff
changeset
|
75 #define set_sign AMR__set_sign |
15c354f75110
libtwamr: integrate set_sign.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
308
diff
changeset
|
76 #define set_sign12k2 AMR__set_sign12k2 |
253
54f6bc41ed10
libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents:
252
diff
changeset
|
77 |
254
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
78 #define Bits2prm AMR__Bits2prm |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
79 #define Prm2bits AMR__Prm2bits |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
80 |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
81 #define bitno AMR__bitno |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
82 #define prmno AMR__prmno |
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
83 #define prmnofs AMR__prmnofs |
255
07f936338de1
libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
254
diff
changeset
|
84 #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
|
85 #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
|
86 #define window_232_8 AMR__window_232_8 |
254
f931e704adc5
libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents:
253
diff
changeset
|
87 |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
88 #endif /* include guard */ |