C ++定点库? [英] C++ fixed point library?

查看:149
本文介绍了C ++定点库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个免费的C ++固定点库(主要用于嵌入式设备,而不是任意精度的数学)。基本上,要求是:

I am looking for a free C++ fixed point library (Mainly for use with embedded devices, not for arbitrary precision math). Basically, the requirements are:


  • 没有不必要的运行时开销:无论在编译时可以做什么,都应该在编译时完成。 li>
  • 能够在固定点和浮点之间透明地切换代码,而不会产生固有的开销。

  • 定点数学函数。

  • 足够小。

任何建议?

推荐答案

我认为这个对大多数用途来说是相当不错的: a href =http://www.trenki.net/content/view/17/1/> http://www.trenki.net/content/view/17/1/

I think this one is quite good for most purposes: http://www.trenki.net/content/view/17/1/

它非常轻量和快速,并支持一些基本的数学(乘法,除法,反转,sin,cos,sqrt,rsqrt)。

It's quite lightweight and fast and supports some basic mathematics (multiplication, division, inversion, sin, cos, sqrt, rsqrt).

这篇关于C ++定点库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆