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.
你好、冠军、
我发现、如果我们使用 CCS 代码优化器、IQmath lib IQ 数据范围和精度将发生变化。 您知道优化器会影响 IQ 库吗? 如何实现它?
它们使用 CCS5.5、编译器版本为15.12.1
谢谢!
BR
Joe
Joe、
您是在将 MATH_TYPE 设置为 IQ_MATH 还是 FLOAT_MATH 的情况下进行编译?
如果是 IQmath 的最新副本、则在2010年对库中的 SAT 函数进行了更改。 有关详细信息、请参阅 IQmathLib.h 顶部的注释。
如果是前者、我在我的机器上看不到问题。 您能否尝试以下操作:
-声明这些全局变量:
_IQ a =_IQ (1.01f);
_iq b =_IQ (-1.0f);
_iq c =_IQ (-99.0f);
_iq d =_IQ (0.0f);
-在您的代码中:
d =_IQsat (c、a、b);
什么是'd'(使用和不使用-o0)?
此致、
Richard