Hi Champion,
I find if we use CCS code optimizer, our IQmath lib IQ data range and accuracy will be change. Do you know optimizer will influence IQ library? How to aviod it?
they use CCS5.5, complier version is 15.12.1
Thanks!
BR
Joe
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.
Hi Champion,
I find if we use CCS code optimizer, our IQmath lib IQ data range and accuracy will be change. Do you know optimizer will influence IQ library? How to aviod it?
they use CCS5.5, complier version is 15.12.1
Thanks!
BR
Joe
Joe,
Are you building with MATH_TYPE set to IQ_MATH or FLOAT_MATH?
If the latter, and you have a recent copy of IQmath, there was a change made to the sat function in the library in 2010. See the comments at the top of IQmathLib.h for details.
If the former, I'm not seeing an issue on my machine. Can you try this:
- declare these globals:
_iq a = _IQ(1.01f);
_iq b = _IQ(-1.0f);
_iq c = _IQ(-99.0f);
_iq d = _IQ(0.0f);
- in your code:
d = _IQsat(c,a,b);
What is 'd' with and without -o0?
Regards,
Richard