deemp.c File Reference

#include "f2c.h"

Include dependency graph for deemp.c:

Go to the source code of this file.

Functions

int deemp_ (real *x, integer *n, struct lpc10_decoder_state *st)


Function Documentation

int deemp_ ( real x,
integer n,
struct lpc10_decoder_state st 
)

Definition at line 106 of file deemp.c.

References lpc10_decoder_state::dei1, lpc10_decoder_state::dei2, lpc10_decoder_state::deo1, lpc10_decoder_state::deo2, and lpc10_decoder_state::deo3.

Referenced by synths_().

00107 {
00108     /* Initialized data */
00109 
00110     real *dei1;
00111     real *dei2;
00112     real *deo1;
00113     real *deo2;
00114     real *deo3;
00115 
00116     /* System generated locals */
00117     integer i__1;
00118     real r__1;
00119 
00120     /* Local variables */
00121     integer k;
00122     real dei0;
00123 
00124 /*       Arguments */
00125 /*       Local variables that need not be saved */
00126 /*       Local state */
00127 /*       All of the locals saved below were not given explicit initial */
00128 /*       values in the original code.  I think 0 is a safe choice. */
00129     /* Parameter adjustments */
00130     if (x) {
00131    --x;
00132    }
00133 
00134     /* Function Body */
00135 
00136     dei1 = &(st->dei1);
00137     dei2 = &(st->dei2);
00138     deo1 = &(st->deo1);
00139     deo2 = &(st->deo2);
00140     deo3 = &(st->deo3);
00141 
00142     i__1 = *n;
00143     for (k = 1; k <= i__1; ++k) {
00144    dei0 = x[k];
00145    r__1 = x[k] - *dei1 * 1.9998f + *dei2;
00146    x[k] = r__1 + *deo1 * 2.5f - *deo2 * 2.0925f + *deo3 * .585f;
00147    *dei2 = *dei1;
00148    *dei1 = dei0;
00149    *deo3 = *deo2;
00150    *deo2 = *deo1;
00151    *deo1 = x[k];
00152     }
00153     return 0;
00154 } /* deemp_ */


Generated on Thu Apr 16 06:30:37 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6