Boost logo

Boost :

From: John C. Femiani (john.femiani_at_[hidden])
Date: 2008-08-01 06:28:28


Matt Gruenke wrote:
> Speaking of division, while I'd expect /= to return the same type as
> the LHS operand, the way I've previously implemented fixed point
> division is to return:
> result_int_bits = (numer_int_bits + denom_frac_bits + 1)
> result_frac_bits = (numer_frac_bits + denom_int_bits - 1)
So then what happens to the value of X after I say Z = X /=Y?
Do you mean '/', instead of '/='?

--John


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