aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tfformat.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /stdio-common/tfformat.c
parent0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.tar
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.bz2
glibc-a334319f6530564d22e775935d9c91663623a1b4.zip
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'stdio-common/tfformat.c')
-rw-r--r--stdio-common/tfformat.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c
index d67b3b504d..ea7365b2c9 100644
--- a/stdio-common/tfformat.c
+++ b/stdio-common/tfformat.c
@@ -4012,17 +4012,6 @@ sprint_double_type sprint_doubles[] =
{__LINE__, 16, "0x1.0p+4", "%.1a"},
{__LINE__, 16, "0x1.00000000000000000000p+4", "%.20a"},
{__LINE__, 4444.88888888, "4445", "%2.F"},
- {__LINE__, 0.956, "1", "%.0g"},
- {__LINE__, 1.0956, "1.", "%#.0g"},
- {__LINE__, 0.956, "1.", "%#.0g"},
- {__LINE__, 0.0956, "0.1", "%#.0g"},
- {__LINE__, 0.00956, "0.01", "%#.0g"},
- {__LINE__, 0.000956, "0.001", "%#.0g"},
- {__LINE__, 0.000098, "0.0001", "%#.0g"},
- {__LINE__, 0.0000996, "0.00010", "%#.2g"},
- {__LINE__, 9.999999999999999e-05, "0.0001", "%g"},
- {__LINE__, 1.0, "1.000000e+00", "%e"},
- {__LINE__, .9999999999999999, "1.000000e+00", "%e"},
{0 }
@@ -4034,8 +4023,13 @@ sprint_double_type sprint_doubles[] =
int required_precision = 13;
+#if defined(__STDC__) || defined(__cplusplus)
static int
matches (register char *result, register const char *desired)
+#else
+int matches(result, desired)
+ register char *result; register const char *desired;
+#endif
{
int digits_seen = 0;
for (;; result++, desired++) {
@@ -4086,7 +4080,7 @@ int main(int argc, char *argv[])
/* And one special test. */
{
- static const char ref[] = "1.7763568394002504646778106689453125e-15";
+ const char ref[] = "1.7763568394002504646778106689453125e-15";
int i;
d = 1.0;
for (i = 1; i < 50; ++i)