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.
Tool/software: TI C/C++ Compiler
We are using TMS320F28335 and for SW development CCS(CCSVersion: 6.0.1.00040 ), we have observed peculiar outputs when we use atan2 function. We have checked for the boundary conditions it yields different results. I have given the combination:
TMS320F28335:
Input x Input y Output
0.0 0.0 0.0
NaN 0.0 0.0
We have tested the same combination in TMS570LS3137 as well.
TMS570LS3137:
Input x Input y Output
0.0 0.0 0.0
NaN 0.0 NaN
why there is different result for the same inputs?
Whenever a NaN is an input to a computation, the result is NaN. Thus, the ARM result is correct, and the C28x result is wrong. For the C28x source file that gives this result, please follow the directions in the article How to Submit a Compiler Test Case.
Thanks and regards,
-George