This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: numeric_limits implementation
- To: "Rich Churcher <Rich" <churchmouse at mpx dot com dot au>
- Subject: Re: numeric_limits implementation
- From: Gabriel Dos Reis <dosreis at cmla dot ens-cachan dot fr>
- Date: 15 Nov 1999 16:08:16 +0100
- Cc: gcc at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS URA 1611 (France)
- References: <14384.669.638385.91762@mpx.com.au>
- Reply-To: gcc at gcc dot gnu dot org
"Rich Churcher <Rich" <churchmouse@mpx.com.au> writes:
| In implementing & specialising numeric_limits for gcc
| i686-pc-linux-gnu, what should I use as meaningful return values for
| the following member functions?
|
| static T infinity() throw();
| static T quiet_NaN() throw();
| static T signaling_NaN() throw();
they are meaningful only when one has respectively
has_infinity != false
has_quiet_NaN != false
has_signaling_NaN != false
ans is_iec559 == true. Otherwise you can just give your favorite
value. Please look at the libstdc++-v3 implementation to see what is
being done.
-- Gaby