请教下如下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型变量数组,感觉比较耗时。
Shine:
要做类型转换,会自动调用rts库里对应的数据类型转换函数。
Table 7-10. Summary of Run-Time-Support Arithmetic Functions
www.ti.com/…/spru187u.pdf
TI中文支持网