1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 #include "fp_consts.h" 7 const union _ieee_rep __QNAN = { __DOUBLE_QNAN_REP }; 8 const union _ieee_rep __SNAN = { __DOUBLE_SNAN_REP }; 9 const union _ieee_rep __INF = { __DOUBLE_INF_REP }; 10 const union _ieee_rep __DENORM = { __DOUBLE_DENORM_REP }; 11 12 /* ISO C99 */ 13 #undef nan 14 /* FIXME */ 15 double nan (const char *); nan(const char * tagp)16double nan (const char * tagp __attribute__((unused)) ) 17 { 18 return __QNAN.double_val; 19 } 20 21