The attached code is an FFT implementation. It should work on any input vector length
I converted each for loop into a clik_for loop.
When I did it in line "for (i = 1; i < n; i += 2)" the results of the FFT were wrong.
There is also a probem with the while loops.
I tried to convert: "while (n > mmax)" to "cilk_for (;n>mmax;)" but I got a syntax error: missing control variable declaration and initialization.
What is the right way to convert a regular FFT code to a clik code ?