Lines Matching refs:st

30     kiss_fftr_cfg st = NULL;  in kiss_fftr_alloc()  local
43 st = (kiss_fftr_cfg) KISS_FFT_MALLOC (memneeded); in kiss_fftr_alloc()
46 st = (kiss_fftr_cfg) mem; in kiss_fftr_alloc()
49 if (!st) in kiss_fftr_alloc()
52 st->substate = (kiss_fft_cfg) (st + 1); /*just beyond kiss_fftr_state struct */ in kiss_fftr_alloc()
53 st->tmpbuf = (kiss_fft_cpx *) (((char *) st->substate) + subsize); in kiss_fftr_alloc()
54 st->super_twiddles = st->tmpbuf + nfft; in kiss_fftr_alloc()
55 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize); in kiss_fftr_alloc()
62 kf_cexp (st->super_twiddles+i,phase); in kiss_fftr_alloc()
64 return st; in kiss_fftr_alloc()
67 void kiss_fftr(kiss_fftr_cfg st,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata) in kiss_fftr() argument
73 if ( st->substate->inverse) { in kiss_fftr()
78 ncfft = st->substate->nfft; in kiss_fftr()
81 kiss_fft( st->substate , (const kiss_fft_cpx*)timedata, st->tmpbuf ); in kiss_fftr()
92 tdc.r = st->tmpbuf[0].r; in kiss_fftr()
93 tdc.i = st->tmpbuf[0].i; in kiss_fftr()
106 fpk = st->tmpbuf[k]; in kiss_fftr()
107 fpnk.r = st->tmpbuf[ncfft-k].r; in kiss_fftr()
108 fpnk.i = - st->tmpbuf[ncfft-k].i; in kiss_fftr()
114 C_MUL( tw , f2k , st->super_twiddles[k-1]); in kiss_fftr()
123 void kiss_fftri(kiss_fftr_cfg st,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata) in kiss_fftri() argument
128 if (st->substate->inverse == 0) { in kiss_fftri()
133 ncfft = st->substate->nfft; in kiss_fftri()
135 st->tmpbuf[0].r = freqdata[0].r + freqdata[ncfft].r; in kiss_fftri()
136 st->tmpbuf[0].i = freqdata[0].r - freqdata[ncfft].r; in kiss_fftri()
137 C_FIXDIV(st->tmpbuf[0],2); in kiss_fftri()
149 C_MUL (fok, tmp, st->super_twiddles[k-1]); in kiss_fftri()
150 C_ADD (st->tmpbuf[k], fek, fok); in kiss_fftri()
151 C_SUB (st->tmpbuf[ncfft - k], fek, fok); in kiss_fftri()
153 st->tmpbuf[ncfft - k].i *= _mm_set1_ps(-1.0); in kiss_fftri()
155 st->tmpbuf[ncfft - k].i *= -1; in kiss_fftri()
158 kiss_fft (st->substate, st->tmpbuf, (kiss_fft_cpx *) timedata); in kiss_fftri()