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.
您好:
我在用官方的库文件测试cla运算的时候发现除法运算出现问题,有时候计算结果会出现正负相反的情况,而其它类型的运算基本都正确
您好,
我使用C2000Ware中提供的CLAdiv示例在\libraries \math\CLAmath\c28\examples\div目录下创建了您的测试设置。
我添加了与您之前的屏幕截图中显示的相同的测试用例,并得到了以下结果。
CLAdiv结果
C编码添加到现有示例中:
您会注意到结果与预期一致。
你能试着复制我的步骤吗,看看这对你是否有效。