您好,
我现在用DM8148做浮点除法运算,比如 double a = 0.345; double b = 0.758; double c = a / b; 这种运算有时可以算对,有时又算错,在其他条件一定的情况下。请问,做浮点运算是不是需要设置些寄存器之类的,期待大师指点。
pei qin
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.
您好,
我现在用DM8148做浮点除法运算,比如 double a = 0.345; double b = 0.758; double c = a / b; 这种运算有时可以算对,有时又算错,在其他条件一定的情况下。请问,做浮点运算是不是需要设置些寄存器之类的,期待大师指点。
pei qin
你好,
DM814x的DSP支持浮点,不需要特殊设置。请问你是如何测试的?是否和cache开启有关?
你好,
请参考论坛讨论:http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/87985/226251.aspx#226251
Chris Meng,
在https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/148099/535435#535435中讲述了在EZSDK中开启cache的方法,请问在windows系统中,怎么开启cache呢?
谢谢~
你好,
请问你说的window系统指的是CCS的代码开发么?如果是,你在CCS下可以配置cache相关的寄存器。具体请参考C674x DSP Megamodule Reference Guide,该文档可以TI官网下载。