我正在寻找一个免费的 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:
有什么建议吗?
有一个开源定点数学库项目,可以通过以下链接找到:
There is an open-source fixed point math library project which can be found by following the links below:
它是一个 C 静态库,为 C++ 用户提供 C++ 类接口,它实现了以下功能:触发.函数:sin、cos、tan、asin、acos、atan、atan2饱和算术:sadd、ssub、smul、sdiv其他函数:sqrt、exp
It is a C static library with a C++ class interface for C++ users, it implements the following functionality: Trig. Functions: sin, cos, tan, asin, acos, atan, atan2 Saturated Arithmetic: sadd, ssub, smul, sdiv Other Functions: sqrt, exp
它仅支持 16.16 定点数据类型.
这是一个积极开发的开源项目(寻找感兴趣的开发人员).
It is an actively developed open-source project (looking for interested developers).
这篇关于C++ 定点库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
当没有异常时,C++ 异常会以何种方式减慢代码速In what ways do C++ exceptions slow down code when there are no exceptions thown?(当没有异常时,C++ 异常会以何种方式减慢代码速度?)
为什么要捕获异常作为对 const 的引用?Why catch an exception as reference-to-const?(为什么要捕获异常作为对 const 的引用?)
我应该何时以及如何使用异常处理?When and how should I use exception handling?(我应该何时以及如何使用异常处理?)
C++中异常对象的范围Scope of exception object in C++(C++中异常对象的范围)
从构造函数的初始化列表中捕获异常Catching exceptions from a constructor#39;s initializer list(从构造函数的初始化列表中捕获异常)
C++03 throw() 说明符 C++11 noexcept 之间的区别Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 说明符 C++11 noexcept 之间的区别)