Boost logo

Boost :

From: Johan Råde (rade_at_[hidden])
Date: 2008-04-30 03:56:08


John Maddock wrote:
>
> T nextafter(T val, T dir)
>
> Returns the next representable floating point value to "val" in the
> direction of "dir". This name is basically fixed, since it's the one that
> C99 uses.
>
> T next_greater(T val)
>
> Returns the next representable value greater than "val".
>
> T next_less(T val)
>
> Returns the next representable value less than "val".
>
> T edit_distance(T a, T b)
>
> Returns the number of floating point representations between values a and b.
>

Hi John,

How did you implement these functions?
Are they wrappers around functions provided by the compiler,
or do you do some bit-twidling?

--Johan


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