This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Floating point comparisons with NaN values produce wrong results



> 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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]