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

@ -73,7 +73,7 @@ kiss_fftnd_cfg kiss_fftnd_alloc(const int *dims,int ndims,int inverse_fft,void*m
st->states[i] = kiss_fft_alloc (st->dims[i], inverse_fft, ptr,&len);
ptr += len;
}
if ( ptr - (char*)st != memneeded ) {
if ( ptr - (char*)st != (int)memneeded ) {
fprintf(stderr,
"################################################################################\n"
"Internal error! Memory allocation miscalculation\n"