Other Parts Discussed in Thread: MATHLIB, AWR1642
TI的工程师您好
我希望使用 mathlib 在AWR1642上进行三角函数计算,目前发现 sinsp和cossp 函数执行的时间较长。我的问题如下:、
1. 有没有官方优化过的执行时间更短的sin/cos计算函数
2. MathLib的Test Report 里面的执行Cycles 中 RTS 、 C 、 Inline 、 Vector 分别代表什么意思?
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.
TI的工程师您好
我希望使用 mathlib 在AWR1642上进行三角函数计算,目前发现 sinsp和cossp 函数执行的时间较长。我的问题如下:、
1. 有没有官方优化过的执行时间更短的sin/cos计算函数
2. MathLib的Test Report 里面的执行Cycles 中 RTS 、 C 、 Inline 、 Vector 分别代表什么意思?
1. mathlib是已经优化过的库了。RTS库里也有sin, cos函数,您可以测一下。
2. In the test report RTS refers to RTS library in the TI C6000 compiler, Inline refers to compiler inlined version of the function (inlining is used when function is called in a loop and compiler unrolls the loop to avoid branching). Code size with Inlined version is typically higher. The vector version of the function is function that works on t a array of values instead of a single value. there are _v versions of the functions defined in the library.
请看下面帖子的说明。
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/881609/evmk2h-mathlib