13#define NeedFunctionPrototypes 1
54#define MIN_WORD (-32767 - 1)
57#define MIN_LONGWORD (-2147483647 - 1)
58#define MAX_LONGWORD 2147483647
62#define SASR(x, by) ((x) >> (by))
64#define SASR(x, by) ((x) >= 0 ? (x) >> (by) : (~(-((x) + 1) >> (by))))
102#define GSM_MULT_R(a, b) \
103 (SASR( ((longword)(a) * (longword)(b) + 16384), 15 ))
105# define GSM_MULT(a,b) \
106 (SASR( ((longword)(a) * (longword)(b)), 15 ))
108# define GSM_L_MULT(a, b) \
109 (((longword)(a) * (longword)(b)) << 1)
111# define GSM_L_ADD(a, b) \
112 ( (a) < 0 ? ( (b) >= 0 ? (a) + (b) \
113 : (utmp = (ulongword)-((a) + 1) + (ulongword)-((b) + 1)) \
114 >= MAX_LONGWORD ? MIN_LONGWORD : -(longword)utmp-2 ) \
115 : ((b) <= 0 ? (a) + (b) \
116 : (utmp = (ulongword)(a) + (ulongword)(b)) >= MAX_LONGWORD \
117 ? MAX_LONGWORD : utmp))
126#define GSM_ADD(a, b) \
127 ((ulongword)((ltmp = (longword)(a) + (longword)(b)) - MIN_WORD) > \
128 MAX_WORD - MIN_WORD ? (ltmp > 0 ? MAX_WORD : MIN_WORD) : ltmp)
130# define GSM_SUB(a, b) \
131 ((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD \
132 ? MAX_WORD : ltmp <= MIN_WORD ? MIN_WORD : ltmp)
134# define GSM_ABS(a) ((a) < 0 ? ((a) == MIN_WORD ? MAX_WORD : -(a)) : (a))
153extern void Gsm_Coder
P((
163extern void Gsm_Long_Term_Predictor
P((
172extern void Gsm_LPC_Analysis
P((
177extern void Gsm_Preprocess
P((
181extern void Gsm_Encoding
P((
189extern void Gsm_Short_Term_Analysis_Filter
P((
194extern void Gsm_Decoder
P((
204extern void Gsm_Decoding
P((
211extern void Gsm_Long_Term_Synthesis_Filtering
P((
218void Gsm_RPE_Decoding
P((
225void Gsm_RPE_Encoding
P((
232extern void Gsm_Short_Term_Synthesis_Filter
P((
238extern void Gsm_Update_of_reconstructed_short_time_residual_signal
P((
262# define gsm_debug_words(a, b, c, d)
263# define gsm_debug_longwords(a, b, c, d)
264# define gsm_debug_word(a, b)
265# define gsm_debug_longword(a, b)
269 extern void gsm_debug_words
P((
char *
name,
int,
int,
word *));
uint8_t a
Definition Spc_Cpu.h:141
int dp
Definition Spc_Cpu.h:149
* e
Definition inflate.c:1404
unsigned d
Definition inflate.c:940
unsigned s
Definition inflate.c:1555
static const char * name
Definition pugl.h:1582
short word
Definition private.h:22
longword gsm_L_asl(longword a, int n)
Definition add.c:153
word gsm_asr(word a, int n)
Definition add.c:161
int longword
Definition private.h:23
word gsm_norm(longword a)
word gsm_B[8]
Definition private.h:248
unsigned short uword
Definition private.h:25
word gsm_NRFAC[8]
Definition table.c:57
word gsm_mult_r(word a, word b)
word gsm_sub(word a, word b)
word gsm_mult(word a, word b)
word gsm_QLB[4]
Definition private.h:250
word gsm_div(word num, word denum)
word gsm_MIC[8]
Definition private.h:248
word gsm_MAC[8]
Definition private.h:248
word gsm_INVA[8]
Definition table.c:33
word gsm_FAC[8]
Definition table.c:63
longword gsm_L_asr(longword a, int n)
Definition add.c:183
longword gsm_L_add(longword a, longword b)
longword gsm_L_mult(word a, word b)
unsigned int ulongword
Definition private.h:26
word gsm_DLB[4]
Definition table.c:39
word gsm_H[11]
Definition table.c:51
word gsm_asl(word a, int n)
Definition add.c:175
word gsm_add(word a, word b)
word gsm_A[8]
Definition table.c:25
longword gsm_L_sub(longword a, longword b)
#define P(protos)
Definition proto.h:37
word v[9]
Definition private.h:42
word LARpp[2][8]
Definition private.h:37
word ltp_cut
Definition private.h:40
unsigned char frame_chain
Definition private.h:50
word nrp
Definition private.h:41
int mp
Definition private.h:34
longword L_z2
Definition private.h:33
word z1
Definition private.h:32
word j
Definition private.h:38
unsigned char frame_index
Definition private.h:49
word u[8]
Definition private.h:36
char wav_fmt
Definition private.h:48
word dp0[280]
Definition private.h:30
word msr
Definition private.h:43
char verbose
Definition private.h:45
char fast
Definition private.h:46
int n
Definition crypt.c:458