annotate libtwamr/namespace.h @ 339:a723d9f9f697

libtwamr: integrate d_gain_c.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 23:33:00 +0000
parents 5db2c920fc23
children e18452a4fbac
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
326
bfe74a9edd5a libtwamr: integrate log2.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 325
diff changeset
59 #define Log2_norm AMR__Log2_norm
252
57b4053559ff libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents: 118
diff changeset
60 #define Pow2 AMR__Pow2
39
36e1363ad885 libgsmefr: initial import of ETSI header files
Mychaela Falconia <falcon@freecalypso.org>
parents: 38
diff changeset
61
253
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
62 #define A_Refl AMR__A_Refl
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
63 #define Autocorr AMR__Autocorr
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
64 #define Az_lsp AMR__Az_lsp
308
8dfb7cbe6b59 libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
65 #define Bgn_scd AMR__Bgn_scd
8dfb7cbe6b59 libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
66 #define Bgn_scd_reset AMR__Bgn_scd_reset
329
e230a4a87bd8 libtwamr: integrate convolve.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 328
diff changeset
67 #define Convolve AMR__Convolve
253
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
68
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
69 #define agc AMR__agc
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
70 #define agc2 AMR__agc2
308
8dfb7cbe6b59 libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
71 #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
72 #define pseudonoise AMR__pseudonoise
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 254
diff changeset
73 #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
74 #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
75 #define gmed_n AMR__gmed_n
8dfb7cbe6b59 libtwamr: integrated up to bgnscd.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
76 #define sqrt_l_exp AMR__sqrt_l_exp
314
15c354f75110 libtwamr: integrate set_sign.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 308
diff changeset
77 #define set_sign AMR__set_sign
15c354f75110 libtwamr: integrate set_sign.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 308
diff changeset
78 #define set_sign12k2 AMR__set_sign12k2
315
5401aaf7acb0 libtwamr: integrate cor_h.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 314
diff changeset
79 #define cor_h AMR__cor_h
5401aaf7acb0 libtwamr: integrate cor_h.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 314
diff changeset
80 #define cor_h_x AMR__cor_h_x
5401aaf7acb0 libtwamr: integrate cor_h.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 314
diff changeset
81 #define cor_h_x2 AMR__cor_h_x2
325
67c31802392b libtwamr: integrate calc_cor.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 324
diff changeset
82 #define comp_corr AMR__comp_corr
328
4614f1a97e1a libtwamr: integrate cbsearch.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 327
diff changeset
83 #define cbsearch AMR__cbsearch
339
a723d9f9f697 libtwamr: integrate d_gain_c.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 338
diff changeset
84 #define d_gain_code AMR__d_gain_code
253
54f6bc41ed10 libtwamr: integrate a* modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 252
diff changeset
85
254
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
86 #define Bits2prm AMR__Bits2prm
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
87 #define Prm2bits AMR__Prm2bits
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
88
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
89 #define bitno AMR__bitno
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
90 #define prmno AMR__prmno
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
91 #define prmnofs AMR__prmnofs
317
675597e63fd8 libtwamr: integrate gray.tab, convert to intermodule linkage
Mychaela Falconia <falcon@freecalypso.org>
parents: 316
diff changeset
92 #define gray AMR__gray
675597e63fd8 libtwamr: integrate gray.tab, convert to intermodule linkage
Mychaela Falconia <falcon@freecalypso.org>
parents: 316
diff changeset
93 #define dgray AMR__dgray
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 254
diff changeset
94 #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
95 #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
96 #define window_232_8 AMR__window_232_8
338
5db2c920fc23 libtwamr: gains.tab integrated
Mychaela Falconia <falcon@freecalypso.org>
parents: 336
diff changeset
97 #define qua_gain_pitch AMR__qua_gain_pitch
5db2c920fc23 libtwamr: gains.tab integrated
Mychaela Falconia <falcon@freecalypso.org>
parents: 336
diff changeset
98 #define qua_gain_code AMR__qua_gain_code
254
f931e704adc5 libtwamr: bits and parameter packing
Mychaela Falconia <falcon@freecalypso.org>
parents: 253
diff changeset
99
324
dc3b7caa59c4 libtwamr: integrate c_g_aver.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 323
diff changeset
100 #define Cb_gain_average AMR__Cb_gain_average
dc3b7caa59c4 libtwamr: integrate c_g_aver.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 323
diff changeset
101 #define Cb_gain_average_reset AMR__Cb_gain_average_reset
dc3b7caa59c4 libtwamr: integrate c_g_aver.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 323
diff changeset
102
327
2df212a012af libtwamr: integrate calc_en.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 326
diff changeset
103 #define calc_unfilt_energies AMR__calc_unfilt_energies
2df212a012af libtwamr: integrate calc_en.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 326
diff changeset
104 #define calc_filt_energies AMR__calc_filt_energies
2df212a012af libtwamr: integrate calc_en.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 326
diff changeset
105 #define calc_target_energy AMR__calc_target_energy
320
ee64aabcc7a0 libtwamr: integrate c2_9pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 319
diff changeset
106 #define code_2i40_9bits AMR__code_2i40_9bits
319
9bca350be398 libtwamr: integrate c2_11pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 318
diff changeset
107 #define code_2i40_11bits AMR__code_2i40_11bits
321
5fc9a2d12048 libtwamr: integrate c3_14pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 320
diff changeset
108 #define code_3i40_14bits AMR__code_3i40_14bits
322
fc82b113977f libtwamr: integrate c4_17pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 321
diff changeset
109 #define code_4i40_17bits AMR__code_4i40_17bits
323
dfd5f159574b libtwamr: integrate c8_31pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 322
diff changeset
110 #define code_8i40_31bits AMR__code_8i10_31bits
318
6fd6c5fc1aa4 libtwamr: integrate c1035pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 317
diff changeset
111 #define code_10i40_35bits AMR__code_10i40_35bits
316
ebd064c52fe3 libtwamr: integrate s10_8pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 315
diff changeset
112 #define search_10and8i40 AMR__search_10and8i40
ebd064c52fe3 libtwamr: integrate s10_8pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 315
diff changeset
113
332
2303ba1490dd libtwamr: integrate d2_9pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 331
diff changeset
114 #define decode_2i40_9bits AMR__decode_2i40_9bits
331
c75327562b5e libtwamr: integrate d2_11pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
115 #define decode_2i40_11bits AMR__decode_2i40_11bits
333
f4a5545ea8b2 libtwamr: integrate d3_14pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 332
diff changeset
116 #define decode_3i40_14bits AMR__decode_3i40_14bits
334
dfaa8f322a8d libtwamr: integrate d4_17pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 333
diff changeset
117 #define decode_4i40_17bits AMR__decode_4i40_17bits
335
03198f6b0427 libtwamr: integrate d8_31pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 334
diff changeset
118 #define dec_8i40_31bits AMR__dec_8i40_31bits
331
c75327562b5e libtwamr: integrate d2_11pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
119 #define dec_10i40_35bits AMR__dec_10i40_35bits
c75327562b5e libtwamr: integrate d2_11pf.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 330
diff changeset
120
336
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
121 #define gc_pred AMR__gc_pred
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
122 #define gc_pred_copy AMR__gc_pred_copy
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
123 #define gc_pred_reset AMR__gc_pred_reset
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
124 #define gc_pred_update AMR__gc_pred_update
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
125 #define gc_pred_average_limited AMR__gc_pred_average_limited
7f99b8ed30e5 libtwamr: integrate gc_pred.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 335
diff changeset
126
252
57b4053559ff libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents: 118
diff changeset
127 #endif /* include guard */