Part Number: TMS320F28027
Other Parts Discussed in Thread: C2000WARE
Hi team,
An example from the IQmath Library A Virtual Floating Point Engine is referenced during the use of IQmath:
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)
The customer is confused about when using the _IQmpy function, why the macro definition M dose not write as _IQmpy(_IQ(M), _IQ(1.26)) ?
And how is _IQdiv(A,B) implemented? Customer guesses (A/B) << GLOBAL_Q. Is it possible to provide the detailed process?
Could you help check this case? Thanks.
Best Regards,
Cherry