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.

optimization of the code "real FIR" in inline

hello,
I want to optimize my code real FIR, passing by the INLINE but I find a factor 4 between release and inline and that do not give the same thing as the code of Texas in the complex FIR, here is my code which I want to optimize to have factor 10 like Texas between INLINE and RELEASE:
#ifdef _INLINE_IQMATH
# include "IQmath_inline.h"
#else
# include "IQmath.h"
#endif
#ifndef _TMS320C6X
#define restrict
#endif
#include "math.h"
void FIR_IQ(const _iq * x,const _iq * h, _iq * restrict r, int nh, int nr)
{
   int i,j;
   for (i = 0; i < nr; i++)
   {
     r[i]=0;
     
      for (j = 0; j < nh; j++)
      {
         r[i] += _IQmpy(h[j], x[i-j]);
      }
   }
}
help me please to solve this problem.
thanks
youir