
30 Apr
2008
30 Apr
'08
7:56 a.m.
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