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:
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