gsm0610_lpc.c File Reference

#include <assert.h>
#include <inttypes.h>
#include <stdlib.h>
#include "spandsp/telephony.h"
#include "spandsp/dc_restore.h"
#include "spandsp/bit_operations.h"
#include "spandsp/vector_int.h"
#include "spandsp/gsm0610.h"
#include "gsm0610_local.h"

Defines

#define STEP(A, B, MAC, MIC)

Functions

int16_t gsm0610_norm (int32_t x)
void gsm0610_lpc_analysis (gsm0610_state_t *s, int16_t amp[GSM0610_FRAME_LEN], int16_t LARc[8])

Detailed Description


Define Documentation

#define STEP ( A,
B,
MAC,
MIC   ) 

Value:

temp = gsm_mult(A, *LAR);                               \
        temp = gsm_add(temp, B);                                \
        temp = gsm_add(temp, 256);                              \
        temp >>= 9;                                             \
        *LAR  = (int16_t) ((temp > MAC)                         \
                         ?                                      \
                         MAC - MIC                              \
                         :                                      \
                         ((temp < MIC)  ?  0  :  temp - MIC));  \
        LAR++;


Generated on Tue Jul 24 11:29:29 2007 for libspandsp by  doxygen 1.5.2