实现要用到大量的SIN和cos函数的计算,现在用的是ti库里的函数,实时性不能满足要求,有没有什么更好的计算方法?
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.
He Guo,
您使用的是C66X 系列的MATHLIB库吗? 这是一个浮点运算库。 里面有单精度和双精度算法,您可以在精度和性能上做过权衡。 或者您可以考虑用定点算法来实现,C66目前还没有三角函数的定点库,您可以参考C64+的库进行C66指令优化。
http://www.ti.com/tool/sprc542 (C64+ 库)
另外,三角函数的性能是一个方面,整个算法的优化以及memory使用的优化也会影响最终的性能。