mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
*** empty log message ***
This commit is contained in:
parent
7f6cbeab2e
commit
95fd244f93
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include "pstats.h"
|
#include "pstats.h"
|
||||||
|
|
||||||
#define CHK fprintf(stderr,"line %d\n" , __LINE__ )
|
|
||||||
|
|
||||||
int main(int argc,char ** argv)
|
int main(int argc,char ** argv)
|
||||||
{
|
{
|
||||||
@ -33,7 +32,6 @@ int main(int argc,char ** argv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CHK;
|
|
||||||
#ifdef USE_SIMD
|
#ifdef USE_SIMD
|
||||||
buf=(kiss_fft_cpx*)memalign(sizeof(kiss_fft_cpx),sizeof(kiss_fft_cpx) * nfft);
|
buf=(kiss_fft_cpx*)memalign(sizeof(kiss_fft_cpx),sizeof(kiss_fft_cpx) * nfft);
|
||||||
bufout=(kiss_fft_cpx*)memalign(sizeof(kiss_fft_cpx),sizeof(kiss_fft_cpx) * nfft);
|
bufout=(kiss_fft_cpx*)memalign(sizeof(kiss_fft_cpx),sizeof(kiss_fft_cpx) * nfft);
|
||||||
@ -44,9 +42,6 @@ int main(int argc,char ** argv)
|
|||||||
buf=(kiss_fft_cpx*)malloc(sizeof(kiss_fft_cpx) * nfft);
|
buf=(kiss_fft_cpx*)malloc(sizeof(kiss_fft_cpx) * nfft);
|
||||||
bufout=(kiss_fft_cpx*)malloc(sizeof(kiss_fft_cpx) * nfft);
|
bufout=(kiss_fft_cpx*)malloc(sizeof(kiss_fft_cpx) * nfft);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(stderr,"buf at %p, bufout at %p\n",buf,bufout);
|
|
||||||
CHK;
|
|
||||||
|
|
||||||
for (i=0;i<nfft;++i ) {
|
for (i=0;i<nfft;++i ) {
|
||||||
#ifdef USE_SIMD
|
#ifdef USE_SIMD
|
||||||
@ -57,17 +52,13 @@ int main(int argc,char ** argv)
|
|||||||
buf[i].i = rand() - RAND_MAX/2;
|
buf[i].i = rand() - RAND_MAX/2;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
CHK;
|
|
||||||
|
|
||||||
pstats_init();
|
pstats_init();
|
||||||
CHK;
|
|
||||||
|
|
||||||
st = kiss_fft_alloc( nfft ,isinverse ,0,0);
|
st = kiss_fft_alloc( nfft ,isinverse ,0,0);
|
||||||
CHK;
|
|
||||||
|
|
||||||
for (i=0;i<numffts;++i)
|
for (i=0;i<numffts;++i)
|
||||||
kiss_fft( st ,buf,bufout );
|
kiss_fft( st ,buf,bufout );
|
||||||
CHK;
|
|
||||||
|
|
||||||
free(st);
|
free(st);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user