Add incomplet long double math support to libmingwex.a
This commit is contained in:
14
winsup/mingw/mingwex/math/fp_consts.c
Normal file
14
winsup/mingw/mingwex/math/fp_consts.c
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "fp_consts.h"
|
||||
const union _ieee_rep __QNAN = { __DOUBLE_QNAN_REP };
|
||||
const union _ieee_rep __SNAN = { __DOUBLE_SNAN_REP };
|
||||
const union _ieee_rep __INF = { __DOUBLE_INF_REP };
|
||||
const union _ieee_rep __DENORM = { __DOUBLE_DENORM_REP };
|
||||
|
||||
/* ISO C99 */
|
||||
#undef nan
|
||||
/* FIXME */
|
||||
double nan (const char * tagp __attribute__((unused)) )
|
||||
{ return __QNAN.double_val; }
|
||||
|
||||
|
Reference in New Issue
Block a user