Lines Matching refs:pi
123 __printf_arginfo_float(const struct printf_info *pi, size_t n, int *argt)
127 if (pi->is_long_double)
148 __printf_render_float(struct __printf_io *io, const struct printf_info *pi, const void *const *arg)
180 prec = pi->prec;
182 sign = pi->showsign;
188 if (pi->alt)
193 switch(pi->spec) {
196 if (pi->spec == 'a') {
207 if (pi->is_long_double) {
225 expchar = pi->spec;
237 expchar = pi->spec - ('g' - 'e');
242 assert(pi->spec == 'f');
247 if (pi->is_long_double) {
265 cp = (pi->spec >= 'a') ? "nan" : "NAN";
268 cp = (pi->spec >= 'a') ? "inf" : "INF";
274 if (pi->spec == 'g' || pi->spec == 'G') {
278 if (pi->alt)
289 if (!pi->alt)
296 if (prec > 1 || pi->alt)
305 if (prec || pi->alt)
347 prsize = pi->width > realsz ? pi->width : realsz;
350 if (pi->pad != '0' && pi->left == 0)
351 ret += __printf_pad(io, pi->width - realsz, 0);
363 if (pi->pad == '0' && pi->left == 0)
364 ret += __printf_pad(io, pi->width - realsz, 1);
376 if (prec || pi->alt)
400 if (prec || pi->alt)
405 if (prec > 1 || pi->alt) {
417 if (pi->left)
418 ret += __printf_pad(io, pi->width - realsz, 0);