Lines Matching refs:REAL
28 #define REAL float
112 REAL x;
121 static REAL IIR_HP_highpass(IIR_HP *i, REAL in) {
122 const REAL a0 = 0.01f; /* controls Transfer Frequency */
136 REAL z[18];
143 REAL highpass(REAL in) {
144 const REAL a[18] = {
154 memmove(z + 1, z, 17 * sizeof(REAL));
156 REAL sum0 = 0.0, sum1 = 0.0;
177 REAL z[36];
186 static REAL FIR_HP_300Hz_highpass(FIR_HP_300Hz *f, REAL in) {
187 REAL sum0 = 0.0, sum1 = 0.0;
189 const REAL a[36] = {
203 memmove(f->z + 1, f->z, 35 * sizeof(REAL));
230 REAL in0, out0;
231 REAL a0, a1, b1;
240 static IIR1* IIR1_init(REAL Fc) {
250 static REAL IIR1_highpass(IIR1 *i, REAL in) {
251 REAL out = i->a0 * in + i->a1 * i->in0 + i->b1 * i->out0;
264 REAL x[2], y[2];
271 REAL highpass(REAL in) {
274 const REAL a[] = { 0.29289323f, -0.58578646f, 0.29289323f };
275 const REAL b[] = { 1.3007072E-16f, 0.17157288f };
276 REAL out =
301 REAL gain; // Mic signal amplify
305 REAL dfast, xfast;
306 REAL dslow, xslow;
309 REAL x[NLMS_LEN + NLMS_EXT]; // tap delayed loudspeaker signal
310 REAL xf[NLMS_LEN + NLMS_EXT]; // pre-whitening tap delayed signal
311 REAL w_arr[NLMS_LEN + (16 / sizeof(REAL))]; // tap weights
312 REAL *w; // this will be a 16-byte aligned pointer into w_arr
321 REAL ws[DUMP_LEN]; // tap weights sums
330 REAL (*dotp) (REAL[], REAL[]);
339 static float AEC_dtd(AEC *a, REAL d, REAL x);
352 static REAL AEC_nlms_pw(AEC *a, REAL d, REAL x_, float stepsize);