diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgsmefr/namespace.h	Thu Nov 24 05:30:03 2022 +0000
@@ -0,0 +1,46 @@
+/*
+ * The code from ETSI consists of many separate modules and lots of little
+ * functions; if we were to keep all those global function names untreated,
+ * our library would cause horrible namespace pollution for any application
+ * linking with it.  Our current solution: we include this header in all
+ * internal modules, transforming the names of all internal functions
+ * with intermodule linkage.
+ */
+
+#define	Overflow	EFR__Overflow
+#define	Carry		EFR__Carry
+
+#define	add		EFR__add
+#define	sub		EFR__sub
+#define	abs_s		EFR__abs_s
+#define	shl		EFR__shl
+#define	shr		EFR__shr
+#define	mult		EFR__mult
+#define	L_mult		EFR__L_mult
+#define	negate		EFR__negate
+#define	extract_h	EFR__extract_h
+#define	extract_l	EFR__extract_l
+#define	round		EFR__round
+#define	L_mac		EFR__L_mac
+#define	L_msu		EFR__L_msu
+#define	L_macNs		EFR__L_macNs
+#define	L_msuNs		EFR__L_msuNs
+#define	L_add		EFR__L_add
+#define	L_sub		EFR__L_sub
+#define	L_add_c		EFR__L_add_c
+#define	L_sub_c		EFR__L_sub_c
+#define	L_negate	EFR__L_negate
+#define	mult_r		EFR__mult_r
+#define	L_shl		EFR__L_shl
+#define	L_shr		EFR__L_shr
+#define	shr_r		EFR__shr_r
+#define	mac_r		EFR__mac_r
+#define	msu_r		EFR__msu_r
+#define	L_deposit_h	EFR__L_deposit_h
+#define	L_deposit_l	EFR__L_deposit_l
+#define	L_shr_r		EFR__L_shr_r
+#define	L_abs		EFR__L_abs
+#define	L_sat		EFR__L_sat
+#define	norm_m		EFR__norm_s
+#define	div_s		EFR__div_s
+#define	norm_l		EFR__norm_l