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.

TMS320F28069M: Why CLA MATH log function is not correct?

Part Number: TMS320F28069M


Hi all, 

When I use CLA Math lib function (Natural Log, base 10 Log, base N Log), the calculated result is a very big number? But other functions in the CLA Math lib is correct. 

lnValue = CLAln(2.718282);
logValue = CLAlog10(100.0);
log10Value = CLAlogN(100.0,10.0);

The results are:

Is there any misunderstanding when I use Log function? 

Please share me some tips. Thank you!

  • Hi,

    Can you check the CLAln() and CLAln_inline() functions in the CLA Math library examples? The example tests both functions. Please let me know if you are seeing similar issues.

    Where are you string the lnValue? Make sure it is is on a 32-bit boundary and accessible by the CLA.

    sal