]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 29 Jul 1999 22:34:58 +0000 (22:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 29 Jul 1999 22:34:58 +0000 (22:34 +0000)
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.

BUGS
ChangeLog
misc/efgcvt.c
misc/efgcvt_r.c
misc/qefgcvt.c
misc/qefgcvt_r.c

diff --git a/BUGS b/BUGS
index 9b546c60dddb7db2ad03347c323190aa9112aec3..2f4456820062d075e1260a1c981ac971bec9cedb 100644 (file)
--- 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
index 28a2a768703516d358d168b64231b9f5c182566e..5104c3462c313ab3f3c339326ae8a092588081e9 100644 (file)
--- 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
index dc711c63dcd79b49fa4995720624b7453c8100f5..37b4bc0163633a3bf42afadd636fdf42c362173d 100644 (file)
 # 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
index d73fd22f70f04d5db5655f32005c547df69f1f10..80770e6a82765e4e5f1b4fc1f5586b1cb574e20c 100644 (file)
 # 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
index faf788aa5d407e34f1a99cac0ee64bb83edad14f..63fc764121b6c24e65a653b4a6312d557a9002f9 100644 (file)
 #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
 
index 5ff8110e3bbfb701aee0c85ae8a2484d80eee036..040193b612d1de6bfeb4a62dc86987f07ba6ec19 100644 (file)
 #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