diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libtwamr/namespace.h	Fri Apr 05 01:02:23 2024 +0000
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+
+#ifndef	namespace_h
+#define	namespace_h
+
+#define	Overflow	AMR__Overflow
+#define	Carry		AMR__Carry
+
+#define	add		AMR__add
+#define	sub		AMR__sub
+#define	abs_s		AMR__abs_s
+#define	shl		AMR__shl
+#define	shr		AMR__shr
+#define	mult		AMR__mult
+#define	L_mult		AMR__L_mult
+#define	negate		AMR__negate
+#define	extract_h	AMR__extract_h
+#define	extract_l	AMR__extract_l
+#define	round		AMR__round
+#define	L_mac		AMR__L_mac
+#define	L_msu		AMR__L_msu
+#define	L_macNs		AMR__L_macNs
+#define	L_msuNs		AMR__L_msuNs
+#define	L_add		AMR__L_add
+#define	L_sub		AMR__L_sub
+#define	L_add_c		AMR__L_add_c
+#define	L_sub_c		AMR__L_sub_c
+#define	L_negate	AMR__L_negate
+#define	mult_r		AMR__mult_r
+#define	L_shl		AMR__L_shl
+#define	L_shr		AMR__L_shr
+#define	shr_r		AMR__shr_r
+#define	mac_r		AMR__mac_r
+#define	msu_r		AMR__msu_r
+#define	L_deposit_h	AMR__L_deposit_h
+#define	L_deposit_l	AMR__L_deposit_l
+#define	L_shr_r		AMR__L_shr_r
+#define	L_abs		AMR__L_abs
+#define	L_sat		AMR__L_sat
+#define	norm_m		AMR__norm_s
+#define	div_s		AMR__div_s
+#define	norm_l		AMR__norm_l
+
+#define	L_Extract	AMR__L_Extract
+#define	L_Comp		AMR__L_Comp
+#define	Mpy_32		AMR__Mpy_32
+#define	Mpy_32_16	AMR__Mpy_32_16
+#define	Div_32		AMR__Div_32
+
+#define	Inv_sqrt	AMR__Inv_sqrt
+#define	Log2		AMR__Log2
+#define	Pow2		AMR__Pow2
+
+#endif	/* include guard */