diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-12-15 09:38:53 -0500 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-12-15 09:39:34 -0500 |
commit | f95a4a932476be2ba99e2fd081e8d2bc6ea12813 (patch) | |
tree | 75f67192cb2d7b7b575c94edda318e475239b63c /newlib/libm/mathfp/s_mathcnst.c | |
parent | f60aca96985e68c7d8a52eb7bc955fb80e132f73 (diff) |
Import newlib and create makefile
Diffstat (limited to 'newlib/libm/mathfp/s_mathcnst.c')
-rw-r--r-- | newlib/libm/mathfp/s_mathcnst.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/newlib/libm/mathfp/s_mathcnst.c b/newlib/libm/mathfp/s_mathcnst.c new file mode 100644 index 0000000..7865c7f --- /dev/null +++ b/newlib/libm/mathfp/s_mathcnst.c @@ -0,0 +1,24 @@ +/* @(#)z_mathcnst.c 1.0 98/08/13 */ + +#include "zmath.h" +#include "fdlibm.h" + +double BIGX = 7.09782712893383973096e+02; +double SMALLX = -7.45133219101941108420e+02; +double z_rooteps = 7.4505859692e-9; +float z_rooteps_f = 1.7263349182589107e-4; + +ufloat z_hugeval_f = { 0x7f800000 }; +ufloat z_infinity_f = { 0x7f800000 }; +ufloat z_notanum_f = { 0xffd00000 }; + +#ifdef ___IEEE_LITTLE_ENDIAN +udouble z_hugeval = { 0x7ff00000, 0 }; +udouble z_infinity = { 0x7ff00000, 0 }; +udouble z_notanum = { 0xfff80000, 0 }; +#else +udouble z_hugeval = { 0, 0x7ff00000 }; +udouble z_infinity = { 0, 0x7ff00000 }; +udouble z_notanum = { 0, 0xfff80000 }; +#endif /* ___IEEE_LITTLE_ENDIAN */ + |