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.

dsplib库函数的调用

请教下如下2个问题

1.调用向量的乘法函数
void DSPF_sp_vecmul(const float *x1, const float *x2,
float *y, const int nx)
DSPF_sp_vecmul 函数的*x2变量为float型,而我的变量是double型,这种怎么处理或者有其他的函数,尽量节省时间?


2. 向量乘加法函数
DSPF_sp_w_vec(const float *x1, const float *x2, const float m,
float *y, const int nx)
DSPF_sp_w_vec 函数的*x1是float型,而我的变量是short型,有什么好的处理方式没?
如果在函数调用前,用for循环将short型变量数组赋值给一个float型变量数组,感觉比较耗时。