|
Boost : |
From: Matt Gruenke (mgruenke_at_[hidden])
Date: 2008-08-01 07:07:02
John C. Femiani wrote:
> 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 '/='?
Yes, I was describing the behavior of my operator/(). I hadn't written
an operator/=().
Matt
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk