Hello All,
I am new to this processor. This processor have two cores
1. C64x DSP
2. ARM926EJ-S.
I am working on ARM926EJ-S. Using CCs V5.4 as an IDE .
One very strange problem i am facing. I define
#define M_PI 3.14159265358979f
float rad2deg = 180.0f / (float)M_PI; or #define rad2deg 57.295779513f
The above statements define in some .h file
In my user defined functions i am trying to do some multilpication like below:
1. y = x*rad2deg;
y and x both are float defined
if x is except 0.0 then i am getting correct value of the above calculation.
But if my x is 0.0 then 0.0 * rad2deg should be 0 but i am getting garbage value (i.e. 3.654321111 e-37) . This value also near to zero but not zero.
Due to this i am facing difficulty in executing proper algorithm which depend upon this logic.
Please help me to understand this problem and provide some solution.
Thanks
Sanyam Agarwal