This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

FFT where number of samples is not a power of 2 or 4

Hi,

I have a special requirement where I need to perform an FFT on 480 samples, I had a look at the DSPLib documentation (sprueb8b.pdf, TMS320C64x+ DSP little endian DSP Library Programmer's Reference), but all of the FFT functions had the following requirement:

  • Size of FFT must be a power of 2 or 4, and 16 <= nx <= 65536

Any suggestions on functions I can use to perform an FFT on 480 samples (the function should not pad the data to a power of 2 or 4) ?

Thank you.

  • Hi RdN,

    I do not think I have great news.

    These limitations are usually because of the assembly version of the function that assumes that the size is a power of 2 or 4. You could use the C equivalent but you would loose on performance.

    Or you could make the size 512 and complete the array with "zeroes", but I'm not completely sure if that would work.