This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: More instantiation problems under hpux
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: dave at hiauly1 dot hia dot nrc dot ca, rittle at labs dot mot dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 16 Jan 2002 23:51:22 -0600 (CST)
- Subject: Re: More instantiation problems under hpux
Dave thanks for the comments and confirmation of analysis.
If a float, double, or long double (you will understand why
I ask this last part when you get the patch) has the value
Inf, will the expression (value > FLT_MAX, DBL_MAX, LDBL_MAX)
(ignore that I will really use the C++ capture of those values
since they have already taken pains to handle the problem
of which C header has the right value, etc)
compute as expected? Here is one concrete example:
double __d = Inf; // Inf is a place holder for any way to create an Inf
bool __b = (__d > DBL_MAX) || (__d < -DBL_MAX); // Must handle -Inf, which
// is supported by IEEE
// and others (?)
Is __b true for all FP implementations that you know about?
I think I trust ininf, finite, etc better than any one-liner I write.
My current patch uses finitef, if available and finite otherwise.
Does hpux have finitef and/or finite ?