Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-12-07 02:50:11 +0300
committerJeff Johnston <jjohnstn@redhat.com>2000-12-07 02:50:11 +0300
commit6bdac416e9e1aecfb94cd3ae383889cc7b7e62e3 (patch)
tree0871ae257bee23aa786ad2ac43aeb3470d340f5f /newlib/libc/stdio/floatio.h
parent81e615de9818b0094abea875b60ca955edfcec9c (diff)
2000-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/Makefile.am: Added ldtoa.c to list of sources. * libc/stdlib/Makefile.in: Regenerated. * libc/stdio/floatio.h: Added suitable MAXEXP for long double. * libc/stdio/vfieeefp.h: Added long double bit structures. * libc/stdio/vfprintf.c[WANT_IO_LONG_DBL]: Added long double support. [WANT_IO_LONG_DBL](isinfl, isnanl): New static long double routines. (exponent): Changed expbuf to reasonable maximum instead of MAXEXP. * libc/stdio/vfscanf.c[WANT_IO_LONG_DBL]: Added long double support. * libc/stdlib/ldtoa.c: New file containing _ldtoa_r and _strtold routines used for conversions between character and long double.
Diffstat (limited to 'newlib/libc/stdio/floatio.h')
-rw-r--r--newlib/libc/stdio/floatio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/stdio/floatio.h b/newlib/libc/stdio/floatio.h
index d9577b2b2..496721b88 100644
--- a/newlib/libc/stdio/floatio.h
+++ b/newlib/libc/stdio/floatio.h
@@ -21,7 +21,12 @@
* Floating point scanf/printf (input/output) definitions.
*/
+#ifdef _NO_LONGDBL
/* 11-bit exponent (VAX G floating point) is 308 decimal digits */
#define MAXEXP 308
+#else /* !_NO_LONGDBL */
+/* 15-bit exponent (Intel extended floating point) is 4932 decimal digits */
+#define MAXEXP 4932
+#endif /* !_NO_LONGDBL */
/* 128 bit fraction takes up 39 decimal digits; max reasonable precision */
#define MAXFRACT 39