Boost logo

Boost :

Subject: Re: [boost] [xint] Question about suitability, portability, and "Boostiness"
From: DE (satan66613_at_[hidden])
Date: 2010-04-15 11:56:32


on 15.04.2010 at 2:42
 Chad Nelson wrote :
>> and a policy regulating whether to use ordinary arithmetic or modulo
>> one would be vital
>> e.g. a natural expectation is that a fixed 128 bit integer does
>> modulo (2^128) arithmetic

> I'm not sure what "normal arithmetic" means for a fixed-size integer.
> Are you referring to using an unlimited-size integer for intermediate
> results?

i meant only that modulo operations should be implicitly used for
fixed precision ints, not the general case ones
it can be an implementation detail and even may be hidden from
users at all
i guess it's all up to you

-- 
Pavel
P.S.
if you notice a grammar mistake or weird phrasing in my message
please point it out

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