嵌入式开发者社区

标题: 有FPU还需要IQMath吗? [打印本页]

作者: cl17726    时间: 2017-5-20 17:15
标题: 有FPU还需要IQMath吗?
本帖最后由 cl17726 于 2017-5-20 17:19 编辑

Texas Instruments TMS320C28x IQmath Library is collection of highly optimized and high precision mathematical Function Library for C/C++ programmers to seamlessly port the floating-point algorithm into fixed point code on TMS320C28x devices.
这么说是给定点CPU设计的.

但是下面又说
In the IQmath header file, select FLOAT_MATH. The header file will convert all IQmath function calls to their floating-point equivalent.The linker will not allow you to mix libraries built with float support with libraries that were not built with float support. If it is a library you have the source to, then you can rebuild it with the --float_support=f32 switch. If it is a TI supplied library without source then check to see if one is provided already. For example if you want to mix IQmath and float32 math use IQmath_f32.lib instead of IQmath.lib.


不知道TI的IQMath是不是就是ARM的IQMath差不多,好奇心提问.而且ARM的IQMath也要指定是不是带FPU,单精度还是双精度,如果TI的IQMath跟ARM的差不多的话,岂不是FPU+IQMath > IQMath的performance?


http://processors.wiki.ti.com/index.php/IQmath_Library_for_C28x

作者: cl17726    时间: 2017-5-23 15:19
有人帮忙解答下吗?
作者: liyulin    时间: 2017-6-5 09:13
IQmath是针对只有定点硬件单元的数学库,通过软件转换的方式来计算浮点。
FPU是浮点运算单元,使能FPU硬件计算无须在用IQmath了




欢迎光临 嵌入式开发者社区 (https://51ele.net/) Powered by Discuz! X3.4