#include "config.h"
#include "proto.h"
#include "private.h"
#include "gsm.h"
Go to the source code of this file.
|  | 
| char *memcpy | P ((char *, char *, int)) | 
|  | 
| void Gsm_Coder | P8 ((S, s, LARc, Nc, bc, Mc, xmaxc, xMc), struct gsm_state *S, word *s, word *LARc, word *Nc, word *bc, word *Mc, word *xmaxc, word *xMc) | 
|  | 
◆ P()
  
  | 
        
          | char *memcpy P | ( | (char *, char *, int) |  | ) |  |  | extern | 
 
 
◆ P8()
      
        
          | void Gsm_Coder P8 | ( | (S, s, LARc, Nc, bc, Mc, xmaxc, xMc) | , | 
        
          |  |  | struct gsm_state * | S, | 
        
          |  |  | word * | s, | 
        
          |  |  | word * | LARc, | 
        
          |  |  | word * | Nc, | 
        
          |  |  | word * | bc, | 
        
          |  |  | word * | Mc, | 
        
          |  |  | word * | xmaxc, | 
        
          |  |  | word * | xMc | 
        
          |  | ) |  |  | 
      
 
Definition at line 26 of file code.c.
   56{
   57    int k;
   58    word    * dp  = 
S->dp0 + 120;   
 
   60 
   62 
   64 
   65    memset(e,0,sizeof e);
   66    Gsm_Preprocess          (
S, s, so);
 
   67    Gsm_LPC_Analysis        (
S, so, 
LARc);
 
   68    Gsm_Short_Term_Analysis_Filter  (
S, 
LARc, so);
 
   69 
   70    for (k = 0; k <= 3; k++, xMc += 13) {
   71 
   72        Gsm_Long_Term_Predictor ( 
S,
 
   73                     so+k*40, 
   74                     dp,      
   75                    e + 5,    
   76                    dpp,      
   79 
   81                    e + 5,  
   83        
   84
   85
   86
   87 
   88        { register int i;
   89          for (i = 0; i <= 39; i++)
   90            dp[ i ] = 
GSM_ADD( e[5 + i], dpp[i] );
 
   91        }
   92        dp  += 40;
   93        dpp += 40;
   94 
   95    }
   96    (void)memcpy( (
char *)
S->dp0, (
char *)(
S->dp0 + 160),
 
   97        120 * 
sizeof(*
S->dp0) );
 
   98}
static word GSM_ADD(longword a, longword b)
References bc, GSM_ADD(), LARc, Mc, Nc, S, and xmaxc.