This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Floating point comparisons with NaN values produce wrong results
- To: Olli Saarela <olli dot saarela at kcl dot fi>
- Subject: Re: Floating point comparisons with NaN values produce wrong results
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Sun, 5 Sep 1999 09:56:10 -0400 (EDT)
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: moshier at mediaone dot net
> static const char double_q_nan_bytes_be[8] = {0x7f, 0xf8, 0, 0, 0, 0,
0, 0};
> #define double_q_nan (*(const double *)double_q_nan_bytes_be)
This is not valid C language. You need to fix your test case.