comparison libtwamr/namespace.h @ 252:57b4053559ff

libtwamr: beginning of project
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Apr 2024 01:02:23 +0000
parents libgsmefr/namespace.h@cc08498ed21b
children 54f6bc41ed10
comparison
equal deleted inserted replaced
251:946849291027 252:57b4053559ff
1 /*
2 * The code from ETSI consists of many separate modules and lots of little
3 * functions; if we were to keep all those global function names untreated,
4 * our library would cause horrible namespace pollution for any application
5 * linking with it. Our current solution: we include this header in all
6 * internal modules, transforming the names of all internal functions
7 * with intermodule linkage.
8 */
9
10 #ifndef namespace_h
11 #define namespace_h
12
13 #define Overflow AMR__Overflow
14 #define Carry AMR__Carry
15
16 #define add AMR__add
17 #define sub AMR__sub
18 #define abs_s AMR__abs_s
19 #define shl AMR__shl
20 #define shr AMR__shr
21 #define mult AMR__mult
22 #define L_mult AMR__L_mult
23 #define negate AMR__negate
24 #define extract_h AMR__extract_h
25 #define extract_l AMR__extract_l
26 #define round AMR__round
27 #define L_mac AMR__L_mac
28 #define L_msu AMR__L_msu
29 #define L_macNs AMR__L_macNs
30 #define L_msuNs AMR__L_msuNs
31 #define L_add AMR__L_add
32 #define L_sub AMR__L_sub
33 #define L_add_c AMR__L_add_c
34 #define L_sub_c AMR__L_sub_c
35 #define L_negate AMR__L_negate
36 #define mult_r AMR__mult_r
37 #define L_shl AMR__L_shl
38 #define L_shr AMR__L_shr
39 #define shr_r AMR__shr_r
40 #define mac_r AMR__mac_r
41 #define msu_r AMR__msu_r
42 #define L_deposit_h AMR__L_deposit_h
43 #define L_deposit_l AMR__L_deposit_l
44 #define L_shr_r AMR__L_shr_r
45 #define L_abs AMR__L_abs
46 #define L_sat AMR__L_sat
47 #define norm_m AMR__norm_s
48 #define div_s AMR__div_s
49 #define norm_l AMR__norm_l
50
51 #define L_Extract AMR__L_Extract
52 #define L_Comp AMR__L_Comp
53 #define Mpy_32 AMR__Mpy_32
54 #define Mpy_32_16 AMR__Mpy_32_16
55 #define Div_32 AMR__Div_32
56
57 #define Inv_sqrt AMR__Inv_sqrt
58 #define Log2 AMR__Log2
59 #define Pow2 AMR__Pow2
60
61 #endif /* include guard */