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 8 const union _ieee_rep __QNANF = { __FLOAT_QNAN_REP }; 9 const union _ieee_rep __SNANF = { __FLOAT_SNAN_REP }; 10 const union _ieee_rep __INFF = { __FLOAT_INF_REP }; 11 const union _ieee_rep __DENORMF = { __FLOAT_DENORM_REP }; 12 13 /* ISO C99 */ 14 #undef nanf 15 /* FIXME */ 16 float nanf(const char *); 17 nanf(const char * tagp)18float nanf(const char * tagp __attribute__((unused)) ) 19 { 20 return __QNANF.float_val; 21 } 22 23