TMS320C54X的dsplib中ldiv16函数,有时候计算结果是正确的,有时候相差挺大,一般会相差2倍的关系,分析所给的数据不存在溢出问题,例如被除数为65536000,除数为1000,实际计算结果为0.504,理论计算结果为1.并且这个DSP库没有该函数的说明。
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.
这可能是ldiv16的bug, c55x ldiv16也有类似的问题, 因为C54x是老器件, dsplib已经很久没有更新了. 你可以参考附件c55x ldiv16修改过的代码看是否有帮助.