diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-01-03 17:39:24 -0700 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-01-03 17:39:24 -0700 |
commit | a6c1ed4716cf02626ea035beb6dd4a921642ba80 (patch) | |
tree | ef582c1b52819e27bdd16097ec03b69799d04ede /newlib/libm/common/s_nan.c | |
parent | f6c9a624fa8a6878a7fb2b02f55e4990a20feb59 (diff) |
Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gbalibc
Diffstat (limited to 'newlib/libm/common/s_nan.c')
-rw-r--r-- | newlib/libm/common/s_nan.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c deleted file mode 100644 index f062426..0000000 --- a/newlib/libm/common/s_nan.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * nan () returns a nan. - * Added by Cygnus Support. - */ - -/* -FUNCTION - <<nan>>, <<nanf>>---representation of infinity - -INDEX - nan -INDEX - nanf - -ANSI_SYNOPSIS - #include <math.h> - double nan(void); - float nanf(void); - -TRAD_SYNOPSIS - #include <math.h> - double nan(); - float nanf(); - - -DESCRIPTION - <<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in - double and single precision arithmetic respectivly. - -QUICKREF - nan - pure - -*/ - -#include "fdlibm.h" - -#ifndef _DOUBLE_IS_32BITS - - double nan() -{ - double x; - - INSERT_WORDS(x,0x7ff80000,0); - return x; -} - -#endif /* _DOUBLE_IS_32BITS */ |