added stride to fft input -- should simplify multi-dimensional FFTs

This commit is contained in:
Mark Borgerding
2003-12-29 18:50:13 +00:00
parent 604e238834
commit 4552a14801
8 changed files with 61 additions and 13 deletions

View File

@ -34,9 +34,10 @@ endif
all: $(BENCHKISS) $(SELFTEST) $(BENCHFFTW) $(TESTREAL) $(FFTUTIL) $(TESTKFC)
#CFLAGS=-Wall -O3 -ansi -pedantic -march=pentiumpro -ffast-math -fomit-frame-pointer
CFLAGS=-Wall -O3 -pedantic -march=pentiumpro -ffast-math -fomit-frame-pointer
#-DUSE_SKIP
# If the above flags do not work, try the following
CFLAGS=-Wall -O3
#CFLAGS=-Wall -O3
$(FFTUTIL): ../kiss_fft.c fftutil.c kiss_fft2d.c kiss_fftr.c
$(CC) -o $@ $(CFLAGS) -I.. $(TYPEFLAGS) -lm $+

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/times.h>
#include <unistd.h>
#include "kiss_fft.h"

View File

@ -26,6 +26,8 @@ double snr_compare( kiss_fft_cpx * test_vec_out,kiss_fft_cpx * testbuf, int n)
return snr;
}
void test_stride();
int main() { int exit_code=0;
#define NFFT 10
@ -130,7 +132,7 @@ int main() { int exit_code=0;
}
#undef NFFT
test_stride();
return exit_code;
}