Fixed-point operations
Cristea Bogdan
cristeab@gmail.com
Tue Jan 1 14:48:00 GMT 2008
I use an Athlon 64 double core processor under openSuSE 10.2 (gcc
4.2.2). The trouble is that implementing fixed point operations in C++
seems to be very slow with respect to floating-point operations. I
have hoped to find something faster.
Ideally I would like to have a data type in C++ with all common
operations in order to do some research with chaotic maps.
Bogdan
On 12/31/07, Tom St Denis <tstdenis@ellipticsemi.com> 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....
>
>
>
--
Bogdan Cristea
More information about the Gcc-help
mailing list