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.

Questions in DSPF_sp_fircirc

Hi there,

I'm trying to understand the function from dsplib 'DSPF_sp_fircirc'. Could anyone tell me why '#pragma MUST_ITERATE(2,,)' is here? Thanks!

Here is some code:

    for (i = 0; i < ny; i += 4) 
    {           
        y0 = 0;
        y1 = 0;
        y2 = 0;
        y3 = 0;
        
        x_0 = x[(i + index) & (mod - 1)];
        x_1 = x[(i + 1 + index) & (mod - 1)];
        x_2 = x[(i + 2 + index) & (mod - 1)];
        
        #pragma MUST_ITERATE(2,,)
        for (j = 0; j < nh; j++)
        {
            x_3 = x[(i + j + 3 + index) & (mod - 1)];
            
            y0 += x_0 * h[j];
            y1 += x_1 * h[j];
            y2 += x_2 * h[j];
            y3 += x_3 * h[j];
            
            x_0 = x_1;
            x_1 = x_2;
            x_2 = x_3;
        }
        
        y[i] = y0;
        y[i + 1] = y1;
        y[i + 2] = y2;
        y[i + 3] = y3;
    }