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.

C28x FPU library and reentrancy

Hi

I am currently using some of the C28x FPU library's FFT functions and notice the user guide saying that the CFFT functions are not reentrant.

This remark is not present on the RFFT functions in the user guide, but it is found in the fpu_rfft.h header file. I have been looking at the assembler code and cannot see that the function makes use of any global variables.

So just to be 100% on the safe side are the RFFT functions reentrant or not?

Hope someone can help me out here?

Many thanks,
Mads Lind Christiansen

  • Hi,

    It looks to be a documentation error. I had a look at the code, there are no globals and all the required registers (XAR1,2,3, R4H,5,6,7) are saved off to the stack, as required by the C calling convention, so there shouldn't be any reason why this isn't re-entrant. 

    Im going to file a bug to have that note removed from the RFFT functions, and to test re-entrancy.