Boost logo

Boost :

Subject: Re: [boost] Fixed point integer proposal
From: Andrey Upadyshev (oliora_at_[hidden])
Date: 2009-06-25 03:47:16


Yes, it is very interesting. I think it will be also useful in finance
calculations.

I think, to be a more useful and to allow a seamless switch from
standatd floating type, this class should support standart boost
features, like serialization and formatting.
> Hi,
>
> Some years ago I wrote a fixed point template for transparent fixed point
> integer arithmetics and conversion.
> It worked well and performance was equal to that of native integer types, at
> least in MS VC++.
> The template takes a base type and the number of bits reserved for the
> fraction part and meta-programming works out boundary safe arithmetics and
> conversions.
> The template has been used in an image processing library, but lately I used
> it for seamless conversion of a 4+28 bit fixed point MAD-library decoded
> mp3-stream to the output buffer of the sound system, with a detour through a
> float-based sound effect.
>
> Would there be public interest in a template like that in the boost library?
>
> Soren
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk