Lines Matching refs:fl
138 static void pad(FILE *f, char c, int w, int l, int fl) in pad() argument
141 if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; in pad()
180 static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) in fmt_fp() argument
194 } else if (fl & MARK_POS) { in fmt_fp()
196 } else if (fl & PAD_POS) { in fmt_fp()
203 pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); in fmt_fp()
206 pad(f, ' ', w, 3+pl, fl^LEFT_ADJ); in fmt_fp()
247 if (s-buf==1 && (y||p>0||(fl&ALT_FORM))) *s++='.'; in fmt_fp()
257 pad(f, ' ', w, pl+l, fl); in fmt_fp()
259 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp()
263 pad(f, ' ', w, pl+l, fl^LEFT_ADJ); in fmt_fp()
354 if (!(fl&ALT_FORM)) { in fmt_fp()
364 if (p > INT_MAX-1-(p || (fl&ALT_FORM))) in fmt_fp()
366 l = 1 + p + (p || (fl&ALT_FORM)); in fmt_fp()
380 pad(f, ' ', w, pl+l, fl); in fmt_fp()
382 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp()
392 if (p || (fl&ALT_FORM)) out(f, ".", 1); in fmt_fp()
407 if (p>0||(fl&ALT_FORM)) out(f, ".", 1); in fmt_fp()
416 pad(f, ' ', w, pl+l, fl^LEFT_ADJ); in fmt_fp()
433 unsigned l10n=0, fl; in printf_core() local
474 for (fl=0; (unsigned)*s-' '<32 && (FLAGMASK&(1U<<*s-' ')); s++) in printf_core()
475 fl |= 1U<<*s-' '; in printf_core()
488 if (w<0) fl|=LEFT_ADJ, w=-w; in printf_core()
540 if (fl & LEFT_ADJ) fl &= ~ZERO_PAD; in printf_core()
557 fl |= ALT_FORM; in printf_core()
560 if (arg.i && (fl & ALT_FORM)) prefix+=(t>>4), pl=2; in printf_core()
564 if ((fl&ALT_FORM) && p<z-a+1) p=z-a+1; in printf_core()
570 } else if (fl & MARK_POS) { in printf_core()
572 } else if (fl & PAD_POS) { in printf_core()
579 if (xp) fl &= ~ZERO_PAD; in printf_core()
588 fl &= ~ZERO_PAD; in printf_core()
597 fl &= ~ZERO_PAD; in printf_core()
610 pad(f, ' ', w, p, fl); in printf_core()
614 pad(f, ' ', w, p, fl^LEFT_ADJ); in printf_core()
620 l = fmt_fp(f, arg.f, w, p, fl, t); in printf_core()
630 pad(f, ' ', w, pl+p, fl); in printf_core()
632 pad(f, '0', w, pl+p, fl^ZERO_PAD); in printf_core()
635 pad(f, ' ', w, pl+p, fl^LEFT_ADJ); in printf_core()