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.

TMS320F28027: IQmath官方手册例子有个疑问

Part Number: TMS320F28027
Other Parts Discussed in Thread: C2000WARE

在使用IQmath 过程当中参考了官方手册 IQmath Library A Virtual Floating Point Engine的一个 例子

如下

Example 1: Implementing equation in IQmath way
Floating point equation: Y = M*1.26 + 2.345
IQmath equation (Type 1): Y =_IQmpy(M, _IQ(1.26)) + _IQ(2.345)
IQmath equation (Type 2): Y =_IQ23mpy(M, _IQ23(1.26)) +_IQ23(2.345)

为什么宏定义M在使用_IQmpy函数的时候不写成这样_IQmpy(_IQ(M), _IQ(1.26)) ?

还有_IQdiv(A,B)的是怎么实现的?个人理解为(A/B)<< GLOBAL_Q 能否写下具体过程?谢谢!