Tool/software: TI C/C++ Compiler
I am developing on C6678.
I called the following function on each core.
void Func() { float temp1 = log((double)2.0f); platform_write("1:%e\n",temp1); float temp2 = (float)log(2.0f); platform_write("2:%e\n",temp2); float temp3 = logf(2.0f); platform_write("3:%e\n",temp3); float temp4 = log(2.0); platform_write("4:%e\n",temp4); }
*The "platform_write" function is my own printf function.
Result of calling function for the first time.
Core 1 to 8
1:6.931472e-01 2:6.931472e-01 3:6.931472e-01 4:6.931472e-01
The result of calling function for the second time.
Core 1 to 7
1:6.931472e-01 2:6.931472e-01 3:6.931472e-01 4:6.931472e-01
Core 8
1:nan 2:nan 3:6.931472e-01 4:nan
Why does core 8 become nan only when called function for the second time?
CCS Ver: 6.2.0
Processor SDK Ver: 03.01.00.06
1:nan
2:nan
3:6.931472e-01
4:nan