comparison libgsmefr/namespace.h @ 38:38326102fc43

libgsmefr: beginning to integrate code from ETSI
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 24 Nov 2022 05:30:03 +0000
parents
children 36e1363ad885
comparison
equal deleted inserted replaced
37:b4db5366b595 38:38326102fc43
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 #define Overflow EFR__Overflow
11 #define Carry EFR__Carry
12
13 #define add EFR__add
14 #define sub EFR__sub
15 #define abs_s EFR__abs_s
16 #define shl EFR__shl
17 #define shr EFR__shr
18 #define mult EFR__mult
19 #define L_mult EFR__L_mult
20 #define negate EFR__negate
21 #define extract_h EFR__extract_h
22 #define extract_l EFR__extract_l
23 #define round EFR__round
24 #define L_mac EFR__L_mac
25 #define L_msu EFR__L_msu
26 #define L_macNs EFR__L_macNs
27 #define L_msuNs EFR__L_msuNs
28 #define L_add EFR__L_add
29 #define L_sub EFR__L_sub
30 #define L_add_c EFR__L_add_c
31 #define L_sub_c EFR__L_sub_c
32 #define L_negate EFR__L_negate
33 #define mult_r EFR__mult_r
34 #define L_shl EFR__L_shl
35 #define L_shr EFR__L_shr
36 #define shr_r EFR__shr_r
37 #define mac_r EFR__mac_r
38 #define msu_r EFR__msu_r
39 #define L_deposit_h EFR__L_deposit_h
40 #define L_deposit_l EFR__L_deposit_l
41 #define L_shr_r EFR__L_shr_r
42 #define L_abs EFR__L_abs
43 #define L_sat EFR__L_sat
44 #define norm_m EFR__norm_s
45 #define div_s EFR__div_s
46 #define norm_l EFR__norm_l