view 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
line wrap: on
line source

/*
 * 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	Log2_norm 	AMR__Log2_norm
#define	Pow2		AMR__Pow2

#define	A_Refl		AMR__A_Refl
#define	Autocorr	AMR__Autocorr
#define	Az_lsp		AMR__Az_lsp
#define	Bgn_scd		AMR__Bgn_scd
#define	Bgn_scd_reset	AMR__Bgn_scd_reset
#define	Convolve 	AMR__Convolve

#define	agc		AMR__agc
#define	agc2		AMR__agc2
#define	agc_reset	AMR__agc_reset
#define	pseudonoise	AMR__pseudonoise
#define	build_CN_code	AMR__build_CN_code
#define	build_CN_param	AMR__build_CN_param
#define	gmed_n		AMR__gmed_n
#define	sqrt_l_exp	AMR__sqrt_l_exp
#define	set_sign	AMR__set_sign
#define	set_sign12k2	AMR__set_sign12k2
#define	cor_h		AMR__cor_h
#define	cor_h_x		AMR__cor_h_x
#define	cor_h_x2	AMR__cor_h_x2
#define	comp_corr 	AMR__comp_corr
#define	cbsearch	AMR__cbsearch
#define	d_gain_code	AMR__d_gain_code

#define	Bits2prm	AMR__Bits2prm
#define	Prm2bits	AMR__Prm2bits

#define	bitno		AMR__bitno
#define	prmno		AMR__prmno
#define	prmnofs		AMR__prmnofs
#define	gray		AMR__gray
#define	dgray		AMR__dgray
#define	window_200_40	AMR__window_200_40
#define	window_160_80	AMR__window_160_80
#define	window_232_8	AMR__window_232_8
#define	qua_gain_pitch	AMR__qua_gain_pitch
#define	qua_gain_code	AMR__qua_gain_code

#define	Cb_gain_average		AMR__Cb_gain_average
#define	Cb_gain_average_reset	AMR__Cb_gain_average_reset

#define	calc_unfilt_energies	AMR__calc_unfilt_energies
#define	calc_filt_energies	AMR__calc_filt_energies
#define	calc_target_energy	AMR__calc_target_energy
#define	code_2i40_9bits		AMR__code_2i40_9bits
#define	code_2i40_11bits	AMR__code_2i40_11bits
#define	code_3i40_14bits	AMR__code_3i40_14bits
#define	code_4i40_17bits	AMR__code_4i40_17bits
#define	code_8i40_31bits	AMR__code_8i10_31bits
#define	code_10i40_35bits	AMR__code_10i40_35bits
#define	search_10and8i40	AMR__search_10and8i40

#define	decode_2i40_9bits	AMR__decode_2i40_9bits
#define	decode_2i40_11bits	AMR__decode_2i40_11bits
#define	decode_3i40_14bits	AMR__decode_3i40_14bits
#define	decode_4i40_17bits	AMR__decode_4i40_17bits
#define	dec_8i40_31bits		AMR__dec_8i40_31bits
#define	dec_10i40_35bits	AMR__dec_10i40_35bits

#define	gc_pred			AMR__gc_pred
#define	gc_pred_copy		AMR__gc_pred_copy
#define	gc_pred_reset		AMR__gc_pred_reset
#define	gc_pred_update		AMR__gc_pred_update
#define	gc_pred_average_limited	AMR__gc_pred_average_limited

#endif	/* include guard */