Page 1 of 1

no builtin_inf on some un*x

Posted: Tue Dec 15, 2009 4:14 am
by Tam Toucan
I can hear your screams from here ;)

It seems that none of redhat EL3 linux, Solaris9 or HP-SUX have builtin_inf. math.h #define's INFINITY to HUGE_VALF. SuSe SLES9 does have it.

Not a huge problem since anyone using one of these probably knows what they are doing :)

Re: no builtin_inf on some un*x

Posted: Tue Dec 15, 2009 10:04 am
by slembcke
Ugh. Seriously, how the blast are you supposed to define a constant for floating point infinity without throwing compile errors or warnings on various compilers?

Every time I change it to make warnings go away for one person, it just shows up somewhere else again! Gah!