Boost logo

Boost :

Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2010-04-03 22:13:30


Chad Nelson wrote:
> On 04/03/2010 09:27 PM, Jeffrey Lee Hellrung, Jr. wrote:
>
>>> At the moment, I'm inclined to leave it out of the library for now,
>>> at least until someone can show an application where it would be
>>> more useful than the Not-a-Number value. But there's still at least
>>> a few days for people to make their cases before I have to make a
>>> decision. And we can always revisit the idea after the 1.0 release
>>> is stable.
>> True, infinities would have somewhat specialized applications, but
>> it makes some sense (to me) to include it if you're already going to
>> waste a byte on an NaN flag anyway.
>
> Ah, but I'm not. :-) Since each xint::integer has a pointer to a data_t
> object (which holds the actual information), I simply set that pointer
> to zero for a NaN. No flags or extra storage involved.

Ah, okay, that makes sense. I can fly with that.

- Jeff


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