This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fixed-point operations


The OP asked for fixed-point arithmetic, not floating point.

The only two libraries I can recommend are the one included in SystemC (very complete
in terms of overflow/quantization control, but slow) and one offered as open source by Mentor Graphics
at http://www.mentor.com/products/esl/high_level_synthesis/ ac_datatypes.cfm.
This second one is a very useful subset of the SystemC library and is _very_ fast.


Hope this helps,

Maurizio

On Dec 31, 2007, at 7:31 AM, Tom St Denis wrote:

Cristea Bogdan wrote:
Is there a library implementing fast fixed-point operations (addition,
multiplication, comparisons)? I have used till now a C++ class, but
the fixed-point operations are very slow wrt to their floating-point
counterparts.



Slow on what? Most big cpus nowadays have very fast FPUs. On something like an ARM without an FPU fixed point should be quite a bit faster....




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]