about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-29 22:34:58 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-29 22:34:58 +0000
commitf9a2a6369d67788a287a985a2d231bb8e3ccd60d (patch)
treefc23f678bc8a12e4023a4a6bcca5f3dba6e51f44
parentdbc75fb3ccd8626ddedd2fe0f3621166059a8c80 (diff)
downloadglibc-f9a2a6369d67788a287a985a2d231bb8e3ccd60d.tar.gz
glibc-f9a2a6369d67788a287a985a2d231bb8e3ccd60d.tar.xz
glibc-f9a2a6369d67788a287a985a2d231bb8e3ccd60d.zip
Update.
1999-07-29  Andreas Schwab  <schwab@suse.de>

	* misc/efgcvt.c (NDIGIT_MAX): Provide precomputed constants for
	all floating point formats supported by gcc.  Error out for
	unhandled precisions.
	* misc/efgcvt_r.c (NDIGIT_MAX): Likewise.
	* misc/qefgcvt.c (NDIGIT_MAX): Likewise.
	* misc/qefgcvt_r.c (NDIGIT_MAX): Likewise.
-rw-r--r--BUGS6
-rw-r--r--ChangeLog9
-rw-r--r--misc/efgcvt.c8
-rw-r--r--misc/efgcvt_r.c8
-rw-r--r--misc/qefgcvt.c10
-rw-r--r--misc/qefgcvt_r.c10
6 files changed, 42 insertions, 9 deletions
diff --git a/BUGS b/BUGS
index 9b546c60dd..2f44568200 100644
--- a/BUGS
+++ b/BUGS
@@ -1,7 +1,7 @@
 	    List of known bugs (certainly very incomplete)
 	    ----------------------------------------------
 
-Time-stamp: <1999-07-06T15:37:11-0700 drepper>
+Time-stamp: <1999-07-29T15:25:53-0700 drepper>
 
 This following list contains those bugs which I'm aware of.  Please
 make sure that bugs you report are not listed here.  If you can fix one
@@ -59,10 +59,6 @@ Severity: [  *] to [***]
 [  *]  The strftime() implementation cannot handle multibyte locales really
        good since the TOLOWER and TOUPPER are not prepared.
 
-[  *]  The putenv() function copies it's argument which means that the
-       string (and possible later changes to it) are not automatically
-       reflected in the environment.
-
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Ulrich Drepper
 drepper@cygnus.com
diff --git a/ChangeLog b/ChangeLog
index 28a2a76870..5104c3462c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+1999-07-29  Andreas Schwab  <schwab@suse.de>
+
+	* misc/efgcvt.c (NDIGIT_MAX): Provide precomputed constants for
+	all floating point formats supported by gcc.  Error out for
+	unhandled precisions.
+	* misc/efgcvt_r.c (NDIGIT_MAX): Likewise.
+	* misc/qefgcvt.c (NDIGIT_MAX): Likewise.
+	* misc/qefgcvt_r.c (NDIGIT_MAX): Likewise.
+
 1999-07-29  Ulrich Drepper  <drepper@cygnus.com>
 
 	* sysdeps/generic/setenv.c: Move setenv code in new function
diff --git a/misc/efgcvt.c b/misc/efgcvt.c
index dc711c63dc..37b4bc0163 100644
--- a/misc/efgcvt.c
+++ b/misc/efgcvt.c
@@ -33,8 +33,14 @@
 # define MAXDIG (NDIGIT_MAX + 3)
 # if DBL_MANT_DIG == 53
 #  define NDIGIT_MAX 17
+# elif DBL_MANT_DIG == 24
+#  define NDIGIT_MAX 9
+# elif DBL_MANT_DIG == 56
+#  define NDIGIT_MAX 18
 # else
-/* See IEEE 854 5.6, table 2 for this formula.  */
+/* See IEEE 854 5.6, table 2 for this formula.  Unfortunately we need a
+   compile time constant here, so we cannot use it.  */
+#  error "NDIGIT_MAX must be precomputed"
 #  define NDIGIT_MAX (lrint (ceil (M_LN2 / M_LN10 * DBL_MANT_DIG + 1.0)))
 # endif
 #endif
diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c
index d73fd22f70..80770e6a82 100644
--- a/misc/efgcvt_r.c
+++ b/misc/efgcvt_r.c
@@ -32,8 +32,14 @@
 # define FLOAT_NAME_EXT
 # if DBL_MANT_DIG == 53
 #  define NDIGIT_MAX 17
+# elif DBL_MANT_DIG == 24
+#  define NDIGIT_MAX 9
+# elif DBL_MANT_DIG == 56
+#  define NDIGIT_MAX 18
 # else
-/* See IEEE 854 5.6, table 2 for this formula.  */
+/* See IEEE 854 5.6, table 2 for this formula.  Unfortunately we need a
+   compile time constant here, so we cannot use it.  */
+#  error "NDIGIT_MAX must be precomputed"
 #  define NDIGIT_MAX (lrint (ceil (M_LN2 / M_LN10 * DBL_MANT_DIG + 1.0)))
 # endif
 #endif
diff --git a/misc/qefgcvt.c b/misc/qefgcvt.c
index faf788aa5d..63fc764121 100644
--- a/misc/qefgcvt.c
+++ b/misc/qefgcvt.c
@@ -28,8 +28,16 @@
 #define MAXDIG (NDIGIT_MAX + 12)
 #if LDBL_MANT_DIG == 64
 # define NDIGIT_MAX 21
+#elif LDBL_MANT_DIG == 53
+# define NDIGIT_MAX 17
+#elif LDBL_MANT_DIG == 113
+# define NDIGIT_MAX 36
+#elif LDBL_MANT_DIG == 56
+# define NDIGIT_MAX 18
 #else
-/* See IEEE 854 5.6, table 2 for this formula.  */
+/* See IEEE 854 5.6, table 2 for this formula.  Unfortunately we need a
+   compile time constant here, so we cannot use it.  */
+# error "NDIGIT_MAX must be precomputed"
 # define NDIGIT_MAX (lrint (ceil (M_LN2 / M_LN10 * LDBL_MANT_DIG + 1.0)))
 #endif
 
diff --git a/misc/qefgcvt_r.c b/misc/qefgcvt_r.c
index 5ff8110e3b..040193b612 100644
--- a/misc/qefgcvt_r.c
+++ b/misc/qefgcvt_r.c
@@ -26,8 +26,16 @@
 #define FLOAT_NAME_EXT l
 #if LDBL_MANT_DIG == 64
 # define NDIGIT_MAX 21
+#elif LDBL_MANT_DIG == 53
+# define NDIGIT_MAX 17
+#elif LDBL_MANT_DIG == 113
+# define NDIGIT_MAX 36
+#elif LDBL_MANT_DIG == 56
+# define NDIGIT_MAX 18
 #else
-/* See IEEE 854 5.6, table 2 for this formula.  */
+/* See IEEE 854 5.6, table 2 for this formula.  Unfortunately we need a
+   compile time constant here, so we cannot use it.  */
+# error "NDIGIT_MAX must be precomputed"
 # define NDIGIT_MAX (lrint (ceil (M_LN2 / M_LN10 * LDBL_MANT_DIG + 1.0)))
 #endif