From 6bdac416e9e1aecfb94cd3ae383889cc7b7e62e3 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 6 Dec 2000 23:50:11 +0000 Subject: 2000-12-06 Jeff Johnston * 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. --- newlib/libc/stdio/floatio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'newlib/libc/stdio/floatio.h') 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 -- cgit v1.2.3