Boost logo

Boost :

Subject: Re: [boost] [fixed_point] Request for interest in a binary fixed point library
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-11 19:58:17


Le 12/04/12 01:38, Neal Becker a écrit :
> Vicente J. Botet Escriba wrote:
>
> ...
>> I want the library to avoid myself to apply these explicit operations. I
>> don't want to see on my code a shift to apply a round. IMO rounding
>> should be applied when the resolution decreases during a conversion and
>> the shift must depend on the difference and the rounding policy.
> I think we're saying the same thing here. In order to do arithmetic on fixed
> point types, (at least, addition/subtraction), we need to first align the binary
> points. This aligning of the binary points is 'shift', is is not? It may be
> followed by applying a rounding policy.
>
>
>
Yes, I guess. I wanted just to be sure that these are implementation
details.

Regards,
Vicente


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