#ifndef GLOBAL_Q
#define GLOBAL_Q 1
#endif
#define _IQsqrt(A) sqrt(A)
VTTT=10;
VTTT=_IQ1mpy(10,10); // 运行结果正常是VTTT=50,
VTTT=_IQ12mpy(4096,4096);//// 运行结果正常是VTTT=4096
VTTT=_IQsqrt(100);// 运行结果是VTTT=14,不正常,不应该是10吗?
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.
#ifndef GLOBAL_Q
#define GLOBAL_Q 1
#endif
#define _IQsqrt(A) sqrt(A)
VTTT=10;
VTTT=_IQ1mpy(10,10); // 运行结果正常是VTTT=50,
VTTT=_IQ12mpy(4096,4096);//// 运行结果正常是VTTT=4096
VTTT=_IQsqrt(100);// 运行结果是VTTT=14,不正常,不应该是10吗?
现在DSP28035中使用开平方函数IQsqrt,可以吗?需要额外配置cmd文件或者库文件吗,编译环境为ccs5,谢谢。