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.

TMS320F28377D: A question of cpu1 cla_sqrt example code.

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hi all,

I have no problem to build this example code, but I don't find any reference to CLAmath.lib. I am wondering why do I build this example code with no problem without including CLAmath.h in sqrt.cla.

Please advise your idea if any, thanks for help.

Regards,

Luke

  • Luke,

    See screenshot below.  This is from C2000Ware V2.00.00.03.  

    Do you see something different?

  • Hi Lori,

    Please import the sample project under folder C:\TI\c2000\C2000Ware_2_00_00_03\device_support\f2837xd\examples\cpu1\cla_sqrt and check the difference.

    I don't see any statement including CLAmath.h or any CLA libraries of this project.

    Luke

  • Luke,

    I understand your question.  Let me look into this and get back to you before end of Wednesday. 

    Regards

    Lori

  • Luke,

    The example is making use of a compiler intrinsic.  By simply using __sqrt() the compiler will pull in the newton-raphson division sequence. Anytime you see __ before a function it is likely an intrinsic. 

    What made this confusing is this particular intrinsic is not documented in the Compiler Reference Guide.  __sqrt() is an alias for the __meisqrtf32 intrinsic which is documented.   

    I will file a request for an update to the compiler guide's documentation.

    I hope my response answers your question.  If it does, please press the "verified answer" to let me know.  If not, please respond with additional information.  If you have a new question please start a new thread.

    Regards

    Lori