blob: 97306dcb1b43fa2ac0e2f2051a6015bbb9188099 [file] [log] [blame]
Kai Tietz815a6642009-02-19 10:54:09 +00001/**
2 * This file has no copyright assigned and is placed in the Public Domain.
Rafaël Carré8a67ab42012-06-28 15:40:59 +00003 * This file is part of the mingw-w64 runtime package.
Kai Tietzfa0cfe32010-01-15 20:02:21 +00004 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
Kai Tietz815a6642009-02-19 10:54:09 +00005 */
6#include "fp_consts.h"
7
Ozkan Sezer8e8a03d2009-08-30 08:35:43 +00008const union _ieee_rep __QNANF = { __FLOAT_QNAN_REP };
9const union _ieee_rep __SNANF = { __FLOAT_SNAN_REP };
10const union _ieee_rep __INFF = { __FLOAT_INF_REP };
11const union _ieee_rep __DENORMF = { __FLOAT_DENORM_REP };
Kai Tietz815a6642009-02-19 10:54:09 +000012
13/* ISO C99 */
14#undef nanf
15/* FIXME */
Kai Tietze2b90362009-08-23 09:30:34 +000016float nanf(const char *);
17
Kai Tietz815a6642009-02-19 10:54:09 +000018float nanf(const char * tagp __attribute__((unused)) )
Ozkan Sezer8e8a03d2009-08-30 08:35:43 +000019{
20 return __QNANF.float_val;
21}
22