/external/libopus/celt/tests/ |
D | test_unit_mdct.c | 54 void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) in check() argument 59 for (bin=0;bin<nfft/2;++bin) { in check() 63 for (k=0;k<nfft;++k) { in check() 64 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft; in check() 67 re /= nfft/4; in check() 77 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr ); in check() 84 void check_inv(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) in check_inv() argument 89 for (bin=0;bin<nfft;++bin) { in check_inv() 93 for (k=0;k<nfft/2;++k) { in check_inv() 94 double phase = 2*M_PI*(bin+.5+.25*nfft)*(k+.5)/nfft; in check_inv() [all …]
|
D | test_unit_dft.c | 54 void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse) in check() argument 59 for (bin=0;bin<nfft;++bin) { in check() 65 for (k=0;k<nfft;++k) { in check() 66 double phase = -2*M_PI*bin*k/nfft; in check() 74 re /= nfft; in check() 75 im /= nfft; in check() 88 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr ); in check() 95 void test1d(int nfft,int isinverse) in test1d() argument 97 size_t buflen = sizeof(kiss_fft_cpx)*nfft; in test1d() 101 kiss_fft_state *cfg = opus_fft_alloc(nfft,0,0); in test1d() [all …]
|
/external/eigen/unsupported/Eigen/src/FFT/ |
D | ei_fftw_impl.h | 60 void fwd(complex_type * dst,complex_type * src,int nfft) { 61 …if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESER… 65 void inv(complex_type * dst,complex_type * src,int nfft) { 66 …if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_BACKWARD , FFTW_ESTIMATE|FFTW_PRES… 70 void fwd(complex_type * dst,scalar_type * src,int nfft) { 71 … if (m_plan==NULL) m_plan = fftwf_plan_dft_r2c_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 75 void inv(scalar_type * dst,complex_type * src,int nfft) { 77 m_plan = fftwf_plan_dft_c2r_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 103 void fwd(complex_type * dst,complex_type * src,int nfft) { 104 …if (m_plan==NULL) m_plan = fftw_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESERV… [all …]
|
D | ei_kissfft_impl.h | 29 void make_twiddles(int nfft,bool inverse) in make_twiddles() 33 m_twiddles.resize(nfft); in make_twiddles() 34 Scalar phinc = (inverse?2:-2)* acos( (Scalar) -1) / nfft; in make_twiddles() 35 for (int i=0;i<nfft;++i) in make_twiddles() 39 void factorize(int nfft) in factorize() 42 int n= nfft; in factorize() 277 void fwd( Complex * dst,const Complex *src,int nfft) in fwd() 279 get_plan(nfft,false).work(0, dst, src, 1,1); in fwd() 305 void fwd( Complex * dst,const Scalar * src,int nfft) in fwd() 307 if ( nfft&3 ) { in fwd() [all …]
|
/external/eigen/unsupported/Eigen/ |
D | FFT | 122 …ft_fwd_proxy(const T_SrcMat& src,T_FftIfc & fft, Index nfft) : m_src(src),m_ifc(fft), m_nfft(nfft)… 142 …ft_inv_proxy(const T_SrcMat& src,T_FftIfc & fft, Index nfft) : m_src(src),m_ifc(fft), m_nfft(nfft)… 187 void fwd( Complex * dst, const Scalar * src, Index nfft) 189 m_impl.fwd(dst,src,static_cast<int>(nfft)); 191 ReflectSpectrum(dst,nfft); 195 void fwd( Complex * dst, const Complex * src, Index nfft) 197 m_impl.fwd(dst,src,static_cast<int>(nfft)); 221 void fwd( MatrixBase<ComplexDerived> & dst, const MatrixBase<InputDerived> & src, Index nfft=-1) 233 if (nfft<1) 234 nfft = src.size(); [all …]
|
/external/eigen/unsupported/test/ |
D | FFTW.cpp | 78 void test_scalar_generic(int nfft) in test_scalar_generic() argument 86 ScalarVector tbuf(nfft); in test_scalar_generic() 88 for (int k=0;k<nfft;++k) in test_scalar_generic() 95 VERIFY((size_t)freqBuf.size() == (size_t)( (nfft>>1)+1) ); in test_scalar_generic() 100 VERIFY( (size_t)freqBuf.size() == (size_t)nfft); in test_scalar_generic() 103 if (nfft&1) in test_scalar_generic() 117 for (int k=0;k<nfft;++k) in test_scalar_generic() 118 tbuf3[k] *= T(1./nfft); in test_scalar_generic() 133 void test_scalar(int nfft) in test_scalar() argument 135 test_scalar_generic<StdVectorContainer,T>(nfft); in test_scalar() [all …]
|
/external/eigen/unsupported/doc/examples/ |
D | FFT.cpp | 75 void fwd_inv(size_t nfft) in fwd_inv() argument 78 vector<T_time> timebuf(nfft); in fwd_inv() 93 void two_demos(int nfft) in two_demos() argument 96 fwd_inv<T_scalar,std::complex<T_scalar> >(nfft); in two_demos() 98 fwd_inv<std::complex<T_scalar>,std::complex<T_scalar> >(nfft); in two_demos() 101 void demo_all_types(int nfft) in demo_all_types() argument 103 cout << "nfft=" << nfft << endl; in demo_all_types() 105 two_demos<float>(nfft); in demo_all_types() 107 two_demos<double>(nfft); in demo_all_types() 109 two_demos<long double>(nfft); in demo_all_types()
|
/external/eigen/bench/ |
D | benchFFT.cpp | 44 void bench(int nfft,bool fwd,bool unscaled=false, bool halfspec=false) in bench() argument 48 int nits = NDATA/nfft; in bench() 49 vector<T> inbuf(nfft); in bench() 50 vector<Complex > outbuf(nfft); in bench() 80 double mflops = 5.*nfft*log2((double)nfft) / (1e6 * timer.value() / (double)nits ); in bench() 94 …cout << " NFFT=" << nfft << " " << (double(1e-6*nfft*nits)/timer.value()) << " MS/s " << mflops … in bench()
|
/external/speex/libspeex/ |
D | kiss_fftr.c | 32 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem) in kiss_fftr_alloc() argument 38 if (nfft & 1) { in kiss_fftr_alloc() 42 nfft >>= 1; in kiss_fftr_alloc() 44 kiss_fft_alloc (nfft, inverse_fft, NULL, &subsize); in kiss_fftr_alloc() 45 memneeded = sizeof(struct kiss_fftr_state) + subsize + sizeof(kiss_fft_cpx) * ( nfft * 2); in kiss_fftr_alloc() 59 st->super_twiddles = st->tmpbuf + nfft; in kiss_fftr_alloc() 60 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize); in kiss_fftr_alloc() 63 for (i=0;i<nfft;++i) { in kiss_fftr_alloc() 64 spx_word32_t phase = i+(nfft>>1); in kiss_fftr_alloc() 67 kf_cexp2(st->super_twiddles+i, DIV32(SHL32(phase,16),nfft)); in kiss_fftr_alloc() [all …]
|
D | kiss_fft.c | 290 int Norig = st->nfft; in kf_bfly_generic() 464 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem ) in kiss_fft_alloc() argument 468 + sizeof(kiss_fft_cpx)*(nfft-1); /* twiddle factors*/ in kiss_fft_alloc() 479 st->nfft=nfft; in kiss_fft_alloc() 482 for (i=0;i<nfft;++i) { in kiss_fft_alloc() 486 kf_cexp2(st->twiddles+i, DIV32(SHL32(phase,17),nfft)); in kiss_fft_alloc() 489 for (i=0;i<nfft;++i) { in kiss_fft_alloc() 491 double phase = ( -2*pi /nfft ) * i; in kiss_fft_alloc() 497 kf_factor(nfft,st->factors); in kiss_fft_alloc()
|
D | kiss_fftr.h | 21 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
|
D | kiss_fft.h | 74 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem);
|
D | _kiss_fft_guts.h | 32 int nfft; member
|
/external/libopus/celt/ |
D | kiss_fft.c | 518 static void compute_twiddles(kiss_twiddle_cpx *twiddles, int nfft) in compute_twiddles() argument 522 for (i=0;i<nfft;++i) { in compute_twiddles() 524 kf_cexp2(twiddles+i, DIV32(SHL32(phase,17),nfft)); in compute_twiddles() 527 for (i=0;i<nfft;++i) { in compute_twiddles() 529 double phase = ( -2*pi /nfft ) * i; in compute_twiddles() 541 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state … in opus_fft_alloc_twiddles() argument 557 st->nfft=nfft; in opus_fft_alloc_twiddles() 559 st->scale = 1.f/nfft; in opus_fft_alloc_twiddles() 565 while (nfft<<st->shift != base->nfft && st->shift < 32) in opus_fft_alloc_twiddles() 570 … st->twiddles = twiddles = (kiss_twiddle_cpx*)KISS_FFT_MALLOC(sizeof(kiss_twiddle_cpx)*nfft); in opus_fft_alloc_twiddles() [all …]
|
D | kiss_fft.h | 81 int nfft; member 116 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *… 118 kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem);
|
/external/llvm/test/CodeGen/X86/ |
D | 2007-11-30-LoadFolding-Bug.ll | 7 …qrt(i32 %n, i32 %radix, i32* %in, i32* %out, i32* %tmp1, i32* %tmp2, i32 %nfft, double* %tmp1fft, …
|