LMMS
Loading...
Searching...
No Matches
long_term.c File Reference
#include <stdio.h>
#include <assert.h>
#include "private.h"
#include "gsm.h"
#include "proto.h"

Macros

#define STEP(K, a, b, c, d, e, f, g, h)
#define STEP_A(K)
#define STEP_B(K)
#define STEP_C(K)
#define STEP_D(K)
#define STEP_E(K)
#define STEP_F(K)
#define STEP_G(K)
#define STEP_H(K)
#define STEP(K, a, b, c, d, e, f, g, h)
#define STEP_A(K)
#define STEP_B(K)
#define STEP_C(K)
#define STEP_D(K)
#define STEP_E(K)
#define STEP_F(K)
#define STEP_G(K)
#define STEP_H(K)
#define STEP(BP)

Functions

static void Calculation_of_the_LTP_parameters P4 ((d, dp, bc_out, Nc_out), register word *d, register word *dp, word *bc_out, word *Nc_out)
static void Long_term_analysis_filtering P6 ((bc, Nc, dp, d, dpp, e), word bc, word Nc, register word *dp, register word *d, register word *dpp, register word *e)
void Gsm_Long_Term_Predictor P7 ((S, d, dp, e, dpp, Nc, bc), struct gsm_state *S, word *d, word *dp, word *e, word *dpp, word *Nc, word *bc)
void Gsm_Long_Term_Synthesis_Filtering P5 ((S, Ncr, bcr, erp, drp), struct gsm_state *S, word Ncr, word bcr, register word *erp, register word *drp)

Macro Definition Documentation

◆ STEP [1/3]

#define STEP ( BP)
Value:
for (k = 0; k <= 39; k++) { \
dpp[k] = GSM_MULT_R( BP, dp[k - Nc]); \
e[k] = GSM_SUB( d[k], dpp[k] ); \
}
int dp
Definition Spc_Cpu.h:149
* e
Definition inflate.c:1404
register unsigned k
Definition inflate.c:946
unsigned d
Definition inflate.c:940
#define GSM_SUB(a, b)
Definition private.h:130
#define GSM_MULT_R(a, b)
Definition private.h:102

◆ STEP [2/3]

#define STEP ( K,
a,
b,
c,
d,
e,
f,
g,
h )
Value:
W = wt_float[K]; \
E = W * a; S8 += E; \
E = W * b; S7 += E; \
E = W * c; S6 += E; \
E = W * d; S5 += E; \
E = W * e; S4 += E; \
E = W * f; S3 += E; \
E = W * g; S2 += E; \
E = W * h; S1 += E; \
a = lp[K]; \
E = W * a; S0 += E
uint8_t a
Definition Spc_Cpu.h:141
#define S0
Definition Ym2612_Emu.cpp:177
#define S1
Definition Ym2612_Emu.cpp:178
#define S3
Definition Ym2612_Emu.cpp:180
#define S2
Definition Ym2612_Emu.cpp:179
int g
Definition inflate.c:1573
unsigned f
Definition inflate.c:1572
return c
Definition crypt.c:175
uch h[RAND_HEAD_LEN]
Definition crypt.c:459
b
Definition crypt.c:628

◆ STEP [3/3]

#define STEP ( K,
a,
b,
c,
d,
e,
f,
g,
h )
Value:
W = wt_float[K]; \
E = W * a; S8 += E; \
E = W * b; S7 += E; \
E = W * c; S6 += E; \
E = W * d; S5 += E; \
E = W * e; S4 += E; \
E = W * f; S3 += E; \
E = W * g; S2 += E; \
E = W * h; S1 += E; \
a = lp[K]; \
E = W * a; S0 += E

◆ STEP_A [1/2]

#define STEP_A ( K)
Value:
STEP(K, a, b, c, d, e, f, g, h)
#define STEP(K, a, b, c, d, e, f, g, h)

◆ STEP_A [2/2]

#define STEP_A ( K)
Value:
STEP(K, a, b, c, d, e, f, g, h)

◆ STEP_B [1/2]

#define STEP_B ( K)
Value:
STEP(K, b, c, d, e, f, g, h, a)

◆ STEP_B [2/2]

#define STEP_B ( K)
Value:
STEP(K, b, c, d, e, f, g, h, a)

◆ STEP_C [1/2]

#define STEP_C ( K)
Value:
STEP(K, c, d, e, f, g, h, a, b)

◆ STEP_C [2/2]

#define STEP_C ( K)
Value:
STEP(K, c, d, e, f, g, h, a, b)

◆ STEP_D [1/2]

#define STEP_D ( K)
Value:
STEP(K, d, e, f, g, h, a, b, c)

◆ STEP_D [2/2]

#define STEP_D ( K)
Value:
STEP(K, d, e, f, g, h, a, b, c)

◆ STEP_E [1/2]

#define STEP_E ( K)
Value:
STEP(K, e, f, g, h, a, b, c, d)

◆ STEP_E [2/2]

#define STEP_E ( K)
Value:
STEP(K, e, f, g, h, a, b, c, d)

◆ STEP_F [1/2]

#define STEP_F ( K)
Value:
STEP(K, f, g, h, a, b, c, d, e)

◆ STEP_F [2/2]

#define STEP_F ( K)
Value:
STEP(K, f, g, h, a, b, c, d, e)

◆ STEP_G [1/2]

#define STEP_G ( K)
Value:
STEP(K, g, h, a, b, c, d, e, f)

◆ STEP_G [2/2]

#define STEP_G ( K)
Value:
STEP(K, g, h, a, b, c, d, e, f)

◆ STEP_H [1/2]

#define STEP_H ( K)
Value:
STEP(K, h, a, b, c, d, e, f, g)

◆ STEP_H [2/2]

#define STEP_H ( K)
Value:
STEP(K, h, a, b, c, d, e, f, g)

Function Documentation

◆ P4()

void Fast_Calculation_of_the_LTP_parameters P4 ( (d, dp, bc_out, Nc_out) ,
register word * d,
register word * dp,
word * bc_out,
word * Nc_out )
static

◆ P5()

void Gsm_Long_Term_Synthesis_Filtering P5 ( (S, Ncr, bcr, erp, drp) ,
struct gsm_state * S,
word Ncr,
word bcr,
register word * erp,
register word * drp )

◆ P6()

void Long_term_analysis_filtering P6 ( (bc, Nc, dp, d, dpp, e) ,
word bc,
word Nc,
register word * dp,
register word * d,
register word * dpp,
register word * e )
static

◆ P7()

void Gsm_Long_Term_Predictor P7 ( (S, d, dp, e, dpp, Nc, bc) ,
struct gsm_state * S,
word * d,
word * dp,
word * e,
word * dpp,
word * Nc,
word * bc )