Lines Matching refs:flags
25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags);
27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
64 int flags; // 用来存储格式信息的bitmap in __do_vsprintf() local
88 field_width = flags = 0; in __do_vsprintf()
106 flags |= LEFT; in __do_vsprintf()
111 flags |= PLUS; in __do_vsprintf()
115 flags |= SPACE; in __do_vsprintf()
120 flags |= SPECIAL; in __do_vsprintf()
125 flags |= PAD_ZERO; in __do_vsprintf()
149 flags |= LEFT; in __do_vsprintf()
191 if (!(flags & LEFT)) in __do_vsprintf()
228 if (!(flags & LEFT)) in __do_vsprintf()
251 flags |= SMALL; in __do_vsprintf()
253 flags |= SPECIAL; in __do_vsprintf()
255 str = write_num(str, va_arg(args, long long), 8, field_width, precision, flags); in __do_vsprintf()
257 str = write_num(str, va_arg(args, int), 8, field_width, precision, flags); in __do_vsprintf()
265 flags |= PAD_ZERO; in __do_vsprintf()
268 … str = write_num(str, (unsigned long)va_arg(args, void *), 16, field_width, precision, flags); in __do_vsprintf()
274 flags |= SMALL; in __do_vsprintf()
278 str = write_num(str, va_arg(args, ll), 16, field_width, precision, flags); in __do_vsprintf()
280 str = write_num(str, va_arg(args, int), 16, field_width, precision, flags); in __do_vsprintf()
287 flags |= SIGN; in __do_vsprintf()
289 str = write_num(str, va_arg(args, long long), 10, field_width, precision, flags); in __do_vsprintf()
291 str = write_num(str, va_arg(args, int), 10, field_width, precision, flags); in __do_vsprintf()
297 … str = write_num(str, va_arg(args, unsigned long long), 10, field_width, precision, flags); in __do_vsprintf()
299 str = write_num(str, va_arg(args, unsigned int), 10, field_width, precision, flags); in __do_vsprintf()
321 str = write_float_point_num(str, va_arg(args, double), field_width, precision, flags); in __do_vsprintf()
383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num() argument
403 if (flags & SMALL) in write_num()
406 if (flags & LEFT) in write_num()
407 flags &= ~PAD_ZERO; in write_num()
409 pad = (flags & PAD_ZERO) ? '0' : ' '; in write_num()
413 if (flags & SIGN) in write_num()
427 sign = (flags & PLUS) ? '+' : ((flags & SPACE) ? ' ' : 0); in write_num()
434 if (flags & SPECIAL) in write_num()
461 if (!(flags & (LEFT + PAD_ZERO))) in write_num()
467 if (flags & SPECIAL) in write_num()
475 if (!(flags & LEFT)) in write_num()
493 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num() argument
509 if (flags & SMALL) in write_float_point_num()
513 pad = (flags & PAD_ZERO) ? '0' : ' '; in write_float_point_num()
515 if (flags & SIGN && num < 0) in write_float_point_num()
523 sign = (flags & PLUS) ? '+' : ((flags & SPACE) ? ' ' : 0); in write_float_point_num()
555 if (!(flags & LEFT)) in write_float_point_num()