Glenn Fowler wrote: > On Mon, 13 Nov 2006 05:30:49 +0100 Roland Mainz wrote: > > Don Cragun wrote: [snip] > > Mhhh, I am just wondering why HUGEVAL is treated slightly differently. > > > The include "/usr/include/iso/math_c99.h" has the following section: > > -- snip -- > > #if defined(_STDC_C99) || _XOPEN_SOURCE - 0 >= 600 || > > defined(__C99FEATURES__) > > #if defined(__GNUC__) > > #undef HUGE_VAL > > #define HUGE_VAL (__builtin_huge_val()) > > #undef HUGE_VALF > > #define HUGE_VALF (__builtin_huge_valf()) > > #undef HUGE_VALL > > #define HUGE_VALL (__builtin_huge_vall()) > > #undef INFINITY > > #define INFINITY (__builtin_inff()) > > #undef NAN > > #define NAN (__builtin_nanf("")) > > -- snip -- [snip] > > HUGE_VAL is +Inf on systems supporting IEEE Std 754-1985 and some > "huge" value denoting error on other systems > > ksh arithmetic supports Inf on all systems > so there's no need for { HUGE_VAL HUGE_VALF HUGE_VALL }
Mhhh... why does "/usr/include/iso/math_c99.h" then define |HUGE_VAL*| seperately, followed by |INFINITY| ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)