有FPU还需要IQMath吗? - TMS320F2837x - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5557|回复: 2

[已解决] 有FPU还需要IQMath吗?

[复制链接]

9

主题

24

帖子

8万

积分

金牌会员

Rank: 6Rank: 6

积分
82453
发表于 2017-5-20 17:15:00 | 显示全部楼层 |阅读模式
本帖最后由 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
回复

使用道具 举报

9

主题

24

帖子

8万

积分

金牌会员

Rank: 6Rank: 6

积分
82453
 楼主| 发表于 2017-5-23 15:19:42 | 显示全部楼层
有人帮忙解答下吗?
回复 支持 反对

使用道具 举报

0

主题

10

帖子

58

积分

QQ游客

积分
58
发表于 2017-6-5 09:13:05 | 显示全部楼层
IQmath是针对只有定点硬件单元的数学库,通过软件转换的方式来计算浮点。
FPU是浮点运算单元,使能FPU硬件计算无须在用IQmath了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2024-3-29 01:40 , Processed in 0.036188 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表