when i used the TI library function DSPF_sp_fir_gen() function,it doesnot work fine ,while i use DSPF_dp_fir_gen(),it worked right. if I use the C code of DSPF_sp_fir_gen() mentioned in the TI documentation ,it also works right,but
the argument nh and nr must exchanged. so ,why the asemble code of DSPF_sp_fir_gen() didnot work?
and why the order of nh and nr in c source code of DSPF_sp_fir_gen() is wrong?
the c source code
/* void DSPF_sp_fir_gen(const float *x, const float *h, float * restrict r */
/* int nh, int nr) */
/* { */
/* int i, j; */
/* float sum; */
/* */
/* for(j=0; j < nh; j++) */
/* { */
/* sum = 0; */
/* for(i=0; i < nr; i++) */
/* { */
/* sum += x[i+j] * h[i]; */
/* } */
/* r[j] = sum; */
/* } */
/* }
obviously, hr should be nr,and nr should be hr.
i think guys in TI make a mistake at this function.