Lines Matching refs:sp

320 	const char *sp = *str;  in extract_decimal()  local
323 while (isdigit((int)(unsigned char)*sp) != 0) { in extract_decimal()
324 val = 10U * val + *sp++ - '0'; in extract_decimal()
326 *str = sp; in extract_decimal()
340 const char *sp) in extract_flags() argument
345 switch (*sp) { in extract_flags()
365 ++sp; in extract_flags()
376 return sp; in extract_flags()
389 const char *sp) in extract_width() argument
393 if (*sp == '*') { in extract_width()
395 return ++sp; in extract_width()
398 const char *wp = sp; in extract_width()
399 size_t width = extract_decimal(&sp); in extract_width()
401 if (sp != wp) { in extract_width()
408 return sp; in extract_width()
421 const char *sp) in extract_prec() argument
423 conv->prec_present = (*sp == '.'); in extract_prec()
426 return sp; in extract_prec()
428 ++sp; in extract_prec()
430 if (*sp == '*') { in extract_prec()
432 return ++sp; in extract_prec()
435 size_t prec = extract_decimal(&sp); in extract_prec()
441 return sp; in extract_prec()
454 const char *sp) in extract_length() argument
456 switch (*sp) { in extract_length()
458 if (*++sp == 'h') { in extract_length()
460 ++sp; in extract_length()
466 if (*++sp == 'l') { in extract_length()
468 ++sp; in extract_length()
475 ++sp; in extract_length()
479 ++sp; in extract_length()
483 ++sp; in extract_length()
487 ++sp; in extract_length()
498 return sp; in extract_length()
514 const char *sp) in extract_specifier() argument
518 conv->specifier = *sp; in extract_specifier()
519 ++sp; in extract_specifier()
632 return sp; in extract_specifier()
644 const char *sp) in extract_conversion() argument
654 ++sp; in extract_conversion()
655 if (*sp == '%') { in extract_conversion()
656 conv->specifier = *sp; in extract_conversion()
657 ++sp; in extract_conversion()
658 return sp; in extract_conversion()
661 sp = extract_flags(conv, sp); in extract_conversion()
662 sp = extract_width(conv, sp); in extract_conversion()
663 sp = extract_prec(conv, sp); in extract_conversion()
664 sp = extract_length(conv, sp); in extract_conversion()
665 sp = extract_specifier(conv, sp); in extract_conversion()
667 return sp; in extract_conversion()
1014 char *sp = bps + (spe - bps); in encode_float() local
1017 sp = encode_uint(fract, &aconv, buf, spe); in encode_float()
1023 while ((spe - sp) < FRACTION_HEX) { in encode_float()
1024 --sp; in encode_float()
1025 *sp = '0'; in encode_float()
1029 while ((sp < spe) && (precision > 0)) { in encode_float()
1030 *buf = *sp; in encode_float()
1032 ++sp; in encode_float()
1057 sp = encode_uint(expo, &aconv, buf, spe); in encode_float()
1059 while (sp < spe) { in encode_float()
1060 *buf = *sp; in encode_float()
1062 ++sp; in encode_float()
1350 const char *sp, in outs() argument
1356 while ((sp < ep) || ((ep == NULL) && *sp)) { in outs()
1357 int rc = out((int)*sp, ctx); in outs()
1358 ++sp; in outs()
1427 const char *sp = fp; in z_cbvprintf_impl() local
1434 fp = extract_conversion(conv, sp); in z_cbvprintf_impl()
1610 OUTS(sp, fp); in z_cbvprintf_impl()