Boost logo

Boost :

From: Matthias Schabel (boost_at_[hidden])
Date: 2007-03-19 15:12:56


> llrint:
>
> Does the Boost.Units library really need these functions?

Not necessarily _need_ - we're just trying to implement all of the TR1
functions for which quantity argument make sense. That means that
we don't have to worry about the special functions, but do have to
worry about the ones mentioned here...

Even just wrapping the platform-dependent parts in a boost function
would be fine, AFAICS...

> nextafter, nextbefore, nexttoward:
>
> Doable.
>
> To get the next floating point number after a given floating point
> number you copy the bits into an integer, add 1, and copy them back.
> You also need to do some special handling of
>
> 1: 0
> 2: std::numeric_limis<T>::min (if there are no denormals)
> 3: std::numeric_limits<max>::max
> 4: infinity
> 5: NaN
>
> If there is a need for this, I might do it, but not during the next
> two
> months.

 From my standpoint, it would strengthen the fp utils proposal if it was
relatively comprehensive - I'd be happy to test these out if that
would help.

Matthias


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