/external/libopus/celt/tests/ |
D | test_unit_mdct.c | 45 void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) in check() argument 50 for (bin=0;bin<nfft/2;++bin) { in check() 54 for (k=0;k<nfft;++k) { in check() 55 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft; in check() 58 re /= nfft/4; in check() 68 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr ); in check() 75 void check_inv(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) in check_inv() argument 80 for (bin=0;bin<nfft;++bin) { in check_inv() 84 for (k=0;k<nfft/2;++k) { in check_inv() 85 double phase = 2*M_PI*(bin+.5+.25*nfft)*(k+.5)/nfft; in check_inv() [all …]
|
D | test_unit_dft.c | 45 void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse) in check() argument 50 for (bin=0;bin<nfft;++bin) { in check() 56 for (k=0;k<nfft;++k) { in check() 57 double phase = -2*M_PI*bin*k/nfft; in check() 65 re /= nfft; in check() 66 im /= nfft; in check() 79 printf("nfft=%d inverse=%d,snr = %f\n",nfft,isinverse,snr ); in check() 86 void test1d(int nfft,int isinverse,int arch) in test1d() argument 88 size_t buflen = sizeof(kiss_fft_cpx)*nfft; in test1d() 93 kiss_fft_state *cfg = opus_fft_alloc(nfft,0,0,arch); 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/libopus/celt/dump_modes/ |
D | dump_modes_arm_ne10.c | 87 mode->mdct.kfft[k]->nfft, (NE10_MAXFACTORS * 2)); in dump_mode_arch() 101 NE10_FFT_CPX_TYPE_T_STR, mode->mdct.kfft[k]->nfft, in dump_mode_arch() 102 mode->mdct.kfft[k]->nfft); in dump_mode_arch() 103 for(j=0;j<mode->mdct.kfft[k]->nfft;j++) { in dump_mode_arch() 120 mode->mdct.kfft[k]->nfft); in dump_mode_arch() 121 fprintf(file, "static const arch_fft_state cfg_arch_%d = {\n", mode->mdct.kfft[k]->nfft); in dump_mode_arch() 128 NE10_FFT_STATE_TYPE_T_STR, mode->mdct.kfft[k]->nfft); in dump_mode_arch() 129 fprintf(file, "%d,\n", cfg->nfft); in dump_mode_arch() 130 fprintf(file, "(ne10_int32_t *)ne10_factors_%d,\n", mode->mdct.kfft[k]->nfft); in dump_mode_arch() 132 NE10_FFT_CPX_TYPE_T_STR, mode->mdct.kfft[k]->nfft); in dump_mode_arch() [all …]
|
D | dump_modes.c | 152 mode->Fs, mdctSize, mode->mdct.kfft[0]->nfft); in dump_modes() 153 for (j=0;j<mode->mdct.kfft[0]->nfft;j++) in dump_modes() 163 fprintf(file, "#ifndef FFT_BITREV%d\n", mode->mdct.kfft[k]->nfft); in dump_modes() 164 fprintf(file, "#define FFT_BITREV%d\n", mode->mdct.kfft[k]->nfft); in dump_modes() 166 mode->mdct.kfft[k]->nfft, mode->mdct.kfft[k]->nfft); in dump_modes() 167 for (j=0;j<mode->mdct.kfft[k]->nfft;j++) in dump_modes() 182 fprintf (file, "%d, /* nfft */\n", mode->mdct.kfft[k]->nfft); in dump_modes() 192 fprintf (file, "fft_bitrev%d, /* bitrev */\n", mode->mdct.kfft[k]->nfft); in dump_modes() 196 fprintf (file, "(arch_fft_state *)&cfg_arch_%d,\n", mode->mdct.kfft[k]->nfft); in dump_modes()
|
/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/libopus/celt/ |
D | kiss_fft.c | 409 static void compute_twiddles(kiss_twiddle_cpx *twiddles, int nfft) in compute_twiddles() argument 413 for (i=0;i<nfft;++i) { in compute_twiddles() 415 kf_cexp2(twiddles+i, DIV32(SHL32(phase,17),nfft)); in compute_twiddles() 418 for (i=0;i<nfft;++i) { in compute_twiddles() 420 double phase = ( -2*pi /nfft ) * i; in compute_twiddles() 437 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, in opus_fft_alloc_twiddles() argument 454 st->nfft=nfft; in opus_fft_alloc_twiddles() 456 st->scale_shift = celt_ilog2(st->nfft); in opus_fft_alloc_twiddles() 457 if (st->nfft == 1<<st->scale_shift) in opus_fft_alloc_twiddles() 460 st->scale = (1073741824+st->nfft/2)/st->nfft>>(15-st->scale_shift); in opus_fft_alloc_twiddles() [all …]
|
D | kiss_fft.h | 87 int nfft; member 128 kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *… 130 kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem, int arch);
|
/external/speex/libspeexdsp/ |
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/arm/ |
D | celt_fft_ne10.c | 52 # define NE10_FFT_ALLOC_C2C_TYPE_NEON(nfft) ne10_fft_alloc_c2c_int32_neon(nfft) argument 79 if(st->nfft == ne10_fft_scaled_support[i]) in opus_fft_alloc_arm_neon() 89 st->arch_fft->priv = (void *)NE10_FFT_ALLOC_C2C_TYPE_NEON(st->nfft); in opus_fft_alloc_arm_neon() 119 ALLOC(buffer, st->nfft, NE10_FFT_CPX_TYPE_T); in opus_fft_neon() 151 ALLOC(buffer, st->nfft, NE10_FFT_CPX_TYPE_T); in opus_ifft_neon()
|
/external/swiftshader/third_party/LLVM/test/CodeGen/SystemZ/ |
D | 2009-07-10-BadIncomingArgOffset.ll | 11 define void @mp_mul_radix_test_bb3(i32 %radix, i32 %nfft, double* %tmpfft, i32* %ip, double* %w, do… 22 …tail call void @rdft(i32 signext %nfft, i32 signext -1, double* %arrayidx44.reload, i32* %ip, doub… 23 …%call = tail call double @mp_mul_d2i_test(i32 signext %radix, i32 signext %nfft, double* %tmpfft) …
|
/external/swiftshader/third_party/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, …
|
/external/swiftshader/third_party/llvm-7.0/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, …
|
/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, …
|