regress/lib/libc/printf/fp.c
100
testfmt("0.000000", "%F", (double)0.0);
regress/lib/libc/printf/fp.c
101
testfmt("0", "%G", 0.0);
regress/lib/libc/printf/fp.c
102
testfmt(" 0", "%3.0Lg", 0.0L);
regress/lib/libc/printf/fp.c
103
testfmt(" 0", "%5.0f", 0.001);
regress/lib/libc/printf/fp.c
108
testfmt("1.0123e+00", "%.4e", 1.0123456789);
regress/lib/libc/printf/fp.c
109
testfmt("1.0123", "%.4f", 1.0123456789);
regress/lib/libc/printf/fp.c
110
testfmt("1.012", "%.4g", 1.0123456789);
regress/lib/libc/printf/fp.c
111
testfmt("1.2346e-02", "%.4e", 0.0123456789);
regress/lib/libc/printf/fp.c
112
testfmt("0.0123", "%.4f", 0.0123456789);
regress/lib/libc/printf/fp.c
113
testfmt("0.01235", "%.4g", 0.0123456789);
regress/lib/libc/printf/fp.c
118
testfmt("+2.500000e-01", "%+e", 0.25);
regress/lib/libc/printf/fp.c
119
testfmt("+0.000000", "%+F", 0.0);
regress/lib/libc/printf/fp.c
120
testfmt("-1", "%+g", -1.0);
regress/lib/libc/printf/fp.c
122
testfmt("-1.000000e+00", "% e", -1.0);
regress/lib/libc/printf/fp.c
123
testfmt("+1.000000", "% +f", 1.0);
regress/lib/libc/printf/fp.c
124
testfmt(" 1", "% g", 1.0);
regress/lib/libc/printf/fp.c
125
testfmt(" 0", "% g", 0.0);
regress/lib/libc/printf/fp.c
130
testfmt("1.250e+00", "%#.3e", 1.25);
regress/lib/libc/printf/fp.c
131
testfmt("123.000000", "%#f", 123.0);
regress/lib/libc/printf/fp.c
132
testfmt(" 12345.", "%#7.5g", 12345.0);
regress/lib/libc/printf/fp.c
133
testfmt(" 1.00000", "%#8g", 1.0);
regress/lib/libc/printf/fp.c
134
testfmt("0.0", "%#.2g", 0.0);
regress/lib/libc/printf/fp.c
139
testfmt("03.2E+00", "%08.1E", 3.25);
regress/lib/libc/printf/fp.c
140
testfmt("003.25", "%06.2F", 3.25);
regress/lib/libc/printf/fp.c
141
testfmt("0003.25", "%07.4G", 3.25);
regress/lib/libc/printf/fp.c
143
testfmt("3.14159e-05", "%g", 3.14159e-5);
regress/lib/libc/printf/fp.c
144
testfmt("0.000314159", "%g", 3.14159e-4);
regress/lib/libc/printf/fp.c
145
testfmt("3.14159e+06", "%g", 3.14159e6);
regress/lib/libc/printf/fp.c
146
testfmt("314159", "%g", 3.14159e5);
regress/lib/libc/printf/fp.c
147
testfmt("314159.", "%#g", 3.14159e5);
regress/lib/libc/printf/fp.c
149
testfmt(" 9.000000e+03", "%13e", 9000.0);
regress/lib/libc/printf/fp.c
150
testfmt(" 9000.000000", "%12f", 9000.0);
regress/lib/libc/printf/fp.c
151
testfmt(" 9000", "%5g", 9000.0);
regress/lib/libc/printf/fp.c
152
testfmt(" 900000.", "%#8g", 900000.0);
regress/lib/libc/printf/fp.c
153
testfmt(" 9e+06", "%6g", 9000000.0);
regress/lib/libc/printf/fp.c
154
testfmt(" 9.000000e-04", "%13e", 0.0009);
regress/lib/libc/printf/fp.c
155
testfmt(" 0.000900", "%9f", 0.0009);
regress/lib/libc/printf/fp.c
156
testfmt(" 0.0009", "%7g", 0.0009);
regress/lib/libc/printf/fp.c
157
testfmt(" 9e-05", "%6g", 0.00009);
regress/lib/libc/printf/fp.c
158
testfmt(" 9.00000e-05", "%#12g", 0.00009);
regress/lib/libc/printf/fp.c
159
testfmt(" 9.e-05", "%#7.1g", 0.00009);
regress/lib/libc/printf/fp.c
161
testfmt(" 0.0", "%4.1f", 0.0);
regress/lib/libc/printf/fp.c
162
testfmt("90.0", "%4.1f", 90.0);
regress/lib/libc/printf/fp.c
163
testfmt(" 100", "%4.0f", 100.0);
regress/lib/libc/printf/fp.c
164
testfmt("9.0e+01", "%4.1e", 90.0);
regress/lib/libc/printf/fp.c
165
testfmt("1e+02", "%4.0e", 100.0);
regress/lib/libc/printf/fp.c
172
testfmt("0x0p+0", "%a", 0x0.0p0);
regress/lib/libc/printf/fp.c
173
testfmt("0X0.P+0", "%#LA", 0x0.0p0L);
regress/lib/libc/printf/fp.c
175
testfmt("inf", "%La", (long double)INFINITY);
regress/lib/libc/printf/fp.c
176
testfmt("+INF", "%+A", INFINITY);
regress/lib/libc/printf/fp.c
177
testfmt("nan", "%La", (long double)NAN);
regress/lib/libc/printf/fp.c
178
testfmt("NAN", "%A", NAN);
regress/lib/libc/printf/fp.c
181
testfmt(" 0x1.23p+0", "%10a", 0x1.23p0);
regress/lib/libc/printf/fp.c
182
testfmt(" 0x1.23p-500", "%12a", 0x1.23p-500);
regress/lib/libc/printf/fp.c
183
testfmt(" 0x1.2p+40", "%10.1a", 0x1.23p40);
regress/lib/libc/printf/fp.c
184
testfmt(" 0X1.230000000000000000000000P-4", "%32.24A", 0x1.23p-4);
regress/lib/libc/printf/fp.c
185
testfmt("0x1p-1074", "%a", 0x1p-1074);
regress/lib/libc/printf/fp.c
186
testfmt("0x1.2345p-1024", "%a", 0x1.2345p-1024);
regress/lib/libc/printf/fp.c
189
testfmt("-0x1.e7d7c7b7a7978777675747372717p-14344", "%La",
regress/lib/libc/printf/fp.c
192
testfmt("-0x8.777675747372717p-16248", "%La",
regress/lib/libc/printf/fp.c
53
testfmt(" 1.000000E+00", "%13E", 1.0);
regress/lib/libc/printf/fp.c
54
testfmt(" 1.000000", "%13f", 1.0);
regress/lib/libc/printf/fp.c
55
testfmt(" 1", "%13G", 1.0);
regress/lib/libc/printf/fp.c
56
testfmt(" 1.000000E+00", "%13LE", 1.0L);
regress/lib/libc/printf/fp.c
57
testfmt(" 1.000000", "%13Lf", 1.0L);
regress/lib/libc/printf/fp.c
58
testfmt(" 1", "%13LG", 1.0L);
regress/lib/libc/printf/fp.c
60
testfmt("2.718282", "%.*f", -2, 2.7182818);
regress/lib/libc/printf/fp.c
62
testfmt("1.234568e+06", "%e", 1234567.8);
regress/lib/libc/printf/fp.c
63
testfmt("1234567.800000", "%f", 1234567.8);
regress/lib/libc/printf/fp.c
64
testfmt("1.23457E+06", "%G", 1234567.8);
regress/lib/libc/printf/fp.c
65
testfmt("1.234568e+06", "%Le", 1234567.8L);
regress/lib/libc/printf/fp.c
66
testfmt("1234567.800000", "%Lf", 1234567.8L);
regress/lib/libc/printf/fp.c
67
testfmt("1.23457E+06", "%LG", 1234567.8L);
regress/lib/libc/printf/fp.c
70
testfmt("123456789.864210", "%Lf", 123456789.8642097531L);
regress/lib/libc/printf/fp.c
71
testfmt("-1.23457E+08", "%LG", -123456789.8642097531L);
regress/lib/libc/printf/fp.c
72
testfmt("123456789.8642097531", "%.10Lf", 123456789.8642097531L);
regress/lib/libc/printf/fp.c
73
testfmt(" 3.141592653589793238e-4000", "%L27.18Le",
regress/lib/libc/printf/fp.c
81
testfmt("nan", "%e", NAN);
regress/lib/libc/printf/fp.c
82
testfmt("NAN", "%F", NAN);
regress/lib/libc/printf/fp.c
83
testfmt("nan", "%g", NAN);
regress/lib/libc/printf/fp.c
84
testfmt("NAN", "%LE", (long double)NAN);
regress/lib/libc/printf/fp.c
85
testfmt(" nan", "%05e", NAN);
regress/lib/libc/printf/fp.c
88
testfmt("INF", "%E", HUGE_VAL);
regress/lib/libc/printf/fp.c
89
testfmt("-inf", "%f", -HUGE_VAL);
regress/lib/libc/printf/fp.c
90
testfmt("+inf", "%+g", HUGE_VAL);
regress/lib/libc/printf/fp.c
91
testfmt(" inf", "%4.2Le", HUGE_VALL);
regress/lib/libc/printf/fp.c
92
testfmt("-inf", "%Lf", -HUGE_VALL);
regress/lib/libc/printf/fp.c
93
testfmt(" inf", "%05e", HUGE_VAL);
regress/lib/libc/printf/fp.c
94
testfmt(" -inf", "%05e", -HUGE_VAL);
regress/lib/libc/printf/fp.c
99
testfmt("0.000000e+00", "%e", 0.0);
regress/lib/libc/wprintf/wfp.c
100
testfmt(L"0.000000e+00", L"%e", 0.0);
regress/lib/libc/wprintf/wfp.c
101
testfmt(L"0.000000", L"%F", (double)0.0);
regress/lib/libc/wprintf/wfp.c
102
testfmt(L"0", L"%G", 0.0);
regress/lib/libc/wprintf/wfp.c
103
testfmt(L" 0", L"%3.0Lg", 0.0L);
regress/lib/libc/wprintf/wfp.c
104
testfmt(L" 0", L"%5.0f", 0.001);
regress/lib/libc/wprintf/wfp.c
109
testfmt(L"1.0123e+00", L"%.4e", 1.0123456789);
regress/lib/libc/wprintf/wfp.c
110
testfmt(L"1.0123", L"%.4f", 1.0123456789);
regress/lib/libc/wprintf/wfp.c
111
testfmt(L"1.012", L"%.4g", 1.0123456789);
regress/lib/libc/wprintf/wfp.c
112
testfmt(L"1.2346e-02", L"%.4e", 0.0123456789);
regress/lib/libc/wprintf/wfp.c
113
testfmt(L"0.0123", L"%.4f", 0.0123456789);
regress/lib/libc/wprintf/wfp.c
114
testfmt(L"0.01235", L"%.4g", 0.0123456789);
regress/lib/libc/wprintf/wfp.c
119
testfmt(L"+2.500000e-01", L"%+e", 0.25);
regress/lib/libc/wprintf/wfp.c
120
testfmt(L"+0.000000", L"%+F", 0.0);
regress/lib/libc/wprintf/wfp.c
121
testfmt(L"-1", L"%+g", -1.0);
regress/lib/libc/wprintf/wfp.c
123
testfmt(L"-1.000000e+00", L"% e", -1.0);
regress/lib/libc/wprintf/wfp.c
124
testfmt(L"+1.000000", L"% +f", 1.0);
regress/lib/libc/wprintf/wfp.c
125
testfmt(L" 1", L"% g", 1.0);
regress/lib/libc/wprintf/wfp.c
126
testfmt(L" 0", L"% g", 0.0);
regress/lib/libc/wprintf/wfp.c
131
testfmt(L"1.250e+00", L"%#.3e", 1.25);
regress/lib/libc/wprintf/wfp.c
132
testfmt(L"123.000000", L"%#f", 123.0);
regress/lib/libc/wprintf/wfp.c
133
testfmt(L" 12345.", L"%#7.5g", 12345.0);
regress/lib/libc/wprintf/wfp.c
134
testfmt(L" 1.00000", L"%#8g", 1.0);
regress/lib/libc/wprintf/wfp.c
135
testfmt(L"0.0", L"%#.2g", 0.0);
regress/lib/libc/wprintf/wfp.c
140
testfmt(L"03.2E+00", L"%08.1E", 3.25);
regress/lib/libc/wprintf/wfp.c
141
testfmt(L"003.25", L"%06.2F", 3.25);
regress/lib/libc/wprintf/wfp.c
142
testfmt(L"0003.25", L"%07.4G", 3.25);
regress/lib/libc/wprintf/wfp.c
144
testfmt(L"3.14159e-05", L"%g", 3.14159e-5);
regress/lib/libc/wprintf/wfp.c
145
testfmt(L"0.000314159", L"%g", 3.14159e-4);
regress/lib/libc/wprintf/wfp.c
146
testfmt(L"3.14159e+06", L"%g", 3.14159e6);
regress/lib/libc/wprintf/wfp.c
147
testfmt(L"314159", L"%g", 3.14159e5);
regress/lib/libc/wprintf/wfp.c
148
testfmt(L"314159.", L"%#g", 3.14159e5);
regress/lib/libc/wprintf/wfp.c
150
testfmt(L" 9.000000e+03", L"%13e", 9000.0);
regress/lib/libc/wprintf/wfp.c
151
testfmt(L" 9000.000000", L"%12f", 9000.0);
regress/lib/libc/wprintf/wfp.c
152
testfmt(L" 9000", L"%5g", 9000.0);
regress/lib/libc/wprintf/wfp.c
153
testfmt(L" 900000.", L"%#8g", 900000.0);
regress/lib/libc/wprintf/wfp.c
154
testfmt(L" 9e+06", L"%6g", 9000000.0);
regress/lib/libc/wprintf/wfp.c
155
testfmt(L" 9.000000e-04", L"%13e", 0.0009);
regress/lib/libc/wprintf/wfp.c
156
testfmt(L" 0.000900", L"%9f", 0.0009);
regress/lib/libc/wprintf/wfp.c
157
testfmt(L" 0.0009", L"%7g", 0.0009);
regress/lib/libc/wprintf/wfp.c
158
testfmt(L" 9e-05", L"%6g", 0.00009);
regress/lib/libc/wprintf/wfp.c
159
testfmt(L" 9.00000e-05", L"%#12g", 0.00009);
regress/lib/libc/wprintf/wfp.c
160
testfmt(L" 9.e-05", L"%#7.1g", 0.00009);
regress/lib/libc/wprintf/wfp.c
162
testfmt(L" 0.0", L"%4.1f", 0.0);
regress/lib/libc/wprintf/wfp.c
163
testfmt(L"90.0", L"%4.1f", 90.0);
regress/lib/libc/wprintf/wfp.c
164
testfmt(L" 100", L"%4.0f", 100.0);
regress/lib/libc/wprintf/wfp.c
165
testfmt(L"9.0e+01", L"%4.1e", 90.0);
regress/lib/libc/wprintf/wfp.c
166
testfmt(L"1e+02", L"%4.0e", 100.0);
regress/lib/libc/wprintf/wfp.c
173
testfmt(L"0x0p+0", L"%a", 0x0.0p0);
regress/lib/libc/wprintf/wfp.c
174
testfmt(L"0X0.P+0", L"%#LA", 0x0.0p0L);
regress/lib/libc/wprintf/wfp.c
176
testfmt(L"inf", L"%La", (long double)INFINITY);
regress/lib/libc/wprintf/wfp.c
177
testfmt(L"+INF", L"%+A", INFINITY);
regress/lib/libc/wprintf/wfp.c
178
testfmt(L"nan", L"%La", (long double)NAN);
regress/lib/libc/wprintf/wfp.c
179
testfmt(L"NAN", L"%A", NAN);
regress/lib/libc/wprintf/wfp.c
182
testfmt(L" 0x1.23p+0", L"%10a", 0x1.23p0);
regress/lib/libc/wprintf/wfp.c
183
testfmt(L" 0x1.23p-500", L"%12a", 0x1.23p-500);
regress/lib/libc/wprintf/wfp.c
184
testfmt(L" 0x1.2p+40", L"%10.1a", 0x1.23p40);
regress/lib/libc/wprintf/wfp.c
185
testfmt(L" 0X1.230000000000000000000000P-4", L"%32.24A", 0x1.23p-4);
regress/lib/libc/wprintf/wfp.c
186
testfmt(L"0x1p-1074", L"%a", 0x1p-1074);
regress/lib/libc/wprintf/wfp.c
187
testfmt(L"0x1.2345p-1024", L"%a", 0x1.2345p-1024);
regress/lib/libc/wprintf/wfp.c
54
testfmt(L" 1.000000E+00", L"%13E", 1.0);
regress/lib/libc/wprintf/wfp.c
55
testfmt(L" 1.000000", L"%13f", 1.0);
regress/lib/libc/wprintf/wfp.c
56
testfmt(L" 1", L"%13G", 1.0);
regress/lib/libc/wprintf/wfp.c
57
testfmt(L" 1.000000E+00", L"%13LE", 1.0L);
regress/lib/libc/wprintf/wfp.c
58
testfmt(L" 1.000000", L"%13Lf", 1.0L);
regress/lib/libc/wprintf/wfp.c
59
testfmt(L" 1", L"%13LG", 1.0L);
regress/lib/libc/wprintf/wfp.c
61
testfmt(L"2.718282", L"%.*f", -2, 2.7182818);
regress/lib/libc/wprintf/wfp.c
63
testfmt(L"1.234568e+06", L"%e", 1234567.8);
regress/lib/libc/wprintf/wfp.c
64
testfmt(L"1234567.800000", L"%f", 1234567.8);
regress/lib/libc/wprintf/wfp.c
65
testfmt(L"1.23457E+06", L"%G", 1234567.8);
regress/lib/libc/wprintf/wfp.c
66
testfmt(L"1.234568e+06", L"%Le", 1234567.8L);
regress/lib/libc/wprintf/wfp.c
67
testfmt(L"1234567.800000", L"%Lf", 1234567.8L);
regress/lib/libc/wprintf/wfp.c
68
testfmt(L"1.23457E+06", L"%LG", 1234567.8L);
regress/lib/libc/wprintf/wfp.c
71
testfmt(L"123456789.864210", L"%Lf", 123456789.8642097531L);
regress/lib/libc/wprintf/wfp.c
72
testfmt(L"-1.23457E+08", L"%LG", -123456789.8642097531L);
regress/lib/libc/wprintf/wfp.c
73
testfmt(L"123456789.8642097531", L"%.10Lf", 123456789.8642097531L);
regress/lib/libc/wprintf/wfp.c
74
testfmt(L" 3.141592653589793238e-4000", L"%L27.18Le",
regress/lib/libc/wprintf/wfp.c
82
testfmt(L"nan", L"%e", NAN);
regress/lib/libc/wprintf/wfp.c
83
testfmt(L"NAN", L"%F", NAN);
regress/lib/libc/wprintf/wfp.c
84
testfmt(L"nan", L"%g", NAN);
regress/lib/libc/wprintf/wfp.c
85
testfmt(L"NAN", L"%LE", (long double)NAN);
regress/lib/libc/wprintf/wfp.c
86
testfmt(L" nan", L"%05e", NAN);
regress/lib/libc/wprintf/wfp.c
89
testfmt(L"INF", L"%E", HUGE_VAL);
regress/lib/libc/wprintf/wfp.c
90
testfmt(L"-inf", L"%f", -HUGE_VAL);
regress/lib/libc/wprintf/wfp.c
91
testfmt(L"+inf", L"%+g", HUGE_VAL);
regress/lib/libc/wprintf/wfp.c
92
testfmt(L" inf", L"%4.2Le", HUGE_VALL);
regress/lib/libc/wprintf/wfp.c
93
testfmt(L"-inf", L"%Lf", -HUGE_VALL);
regress/lib/libc/wprintf/wfp.c
94
testfmt(L" inf", L"%05e", HUGE_VAL);
regress/lib/libc/wprintf/wfp.c
95
testfmt(L" -inf", L"%05e", -HUGE_VAL);