added kiss_fft_next_fast_size() to determine the next number divisible by the radices 2,3,5

This commit is contained in:
Mark Borgerding
2006-06-28 03:25:02 +00:00
parent a2c69eb8ea
commit 2cce2ea306
4 changed files with 24 additions and 1 deletions

View File

@ -23,6 +23,10 @@ int main(int argc,char ** argv)
switch (c) {
case 'n':
nfft = atoi (optarg);
if (nfft != kiss_fft_next_fast_size(nfft) ) {
int ng = kiss_fft_next_fast_size(nfft);
fprintf(stderr,"warning: %d might be a better choice for speed than %d\n",ng,nfft);
}
break;
case 'x':
numffts = atoi (optarg);