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.

TMS320F28377S: speed of trigonometric function used in code

Part Number: TMS320F28377S

Dear TI engineers,

Nowadays, I used trigonometric function to do some calculation. But I found different functions which could be used. For example, sinf and __sin. And I calculate the time that __sin is more efficient than sinf.

So, what is different between them? Could you suggest more quick function? Where could be  search document about this part?

Waiting for your suggestion,

coke.

  • sinf uses the standard RTS library implementation available from the compiler, which is more accurate but much slower.

    __sin calls a TMU hardware instruction which is less accurate but a lot faster (a few CPU clock cycles).

    Look at spru514, 2.3.3, --fp_mode=relaxed

    Also look at spruhs1, 7.5.3

    Thanks,

    Sira