Lines Matching +full:0 +full:xd800

25 	int i = 0;  in skip_atoi()
28 i = i * 10 + *((*s)++) - '0'; in skip_atoi()
33 * put_dec_full4 handles numbers in the range 0 <= r < 10000.
34 * The multiplier 0xccd is round(2^15/10), and the approximation
35 * r/10 == (r * 0xccd) >> 15 is exact for all r < 16389.
42 for (i = 0; i < 3; i++) { in put_dec_full4()
43 unsigned int q = (r * 0xccd) >> 15; in put_dec_full4()
44 *--end = '0' + (r - q * 10); in put_dec_full4()
47 *--end = '0' + r; in put_dec_full4()
54 * The approximation x/10000 == (x * 0x346DC5D7) >> 43
62 unsigned int q = (x * 0x346DC5D7ULL) >> 43; in put_dec_helper4()
79 d1 = ((unsigned int)n >> 16); /* implicit "& 0xffff" */ in put_dec()
81 d2 = (h ) & 0xffff; in put_dec()
82 d3 = (h >> 16); /* implicit "& 0xffff" */ in put_dec()
86 q = 656 * d3 + 7296 * d2 + 5536 * d1 + ((unsigned int)n & 0xffff); in put_dec()
105 /* strip off the extra 0's we printed */ in put_dec()
106 while (p < end && *p == '0') in put_dec()
116 * locase = 0 or 0x20. ORing digits or letters with 'locase' in number()
125 if (num != 0) in number()
129 for (; num != 0; num >>= 3) in number()
130 *--end = '0' + (num & 07); in number()
133 for (; num != 0; num >>= 4) in number()
134 *--end = digits[num & 0xf] | locase; in number()
148 #define SMALL 32 /* Must be 32 == 0x20 */
149 #define SPECIAL 64 /* 0x */
155 int flags = 0; in get_flags()
171 case '0': in get_flags()
191 return 0; in get_int()
230 return 0; in get_sign()
231 if (*num < 0) { in get_sign()
239 return 0; in get_sign()
247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen()
251 clen = 1 + (c0 >= 0x80) + (c0 >= 0x800); in utf16s_utf8nlen()
260 if ((c0 & 0xfc00) == 0xd800) { in utf16s_utf8nlen()
263 if ((*s16 & 0xfc00) == 0xdc00) { in utf16s_utf8nlen()
280 if ((c0 & 0xf800) != 0xd800) in utf16_to_utf32()
283 if (c0 & 0x0400) in utf16_to_utf32()
284 return 0xfffd; in utf16_to_utf32()
287 if ((c1 & 0xfc00) != 0xdc00) in utf16_to_utf32()
288 return 0xfffd; in utf16_to_utf32()
291 return (0x10000 - (0xd800 << 10) - 0xdc00) + (c0 << 10) + c1; in utf16_to_utf32()
299 } while (0);
337 for (pos = 0; *fmt; ++fmt) { in vsnprintf()
348 if (field_width < 0) { in vsnprintf()
361 if (precision >= 0) in vsnprintf()
376 sign = 0; in vsnprintf()
383 ((u16 *)tmp)[0] = (u16)va_arg(args, unsigned int); in vsnprintf()
384 ((u16 *)tmp)[1] = L'\0'; in vsnprintf()
388 tmp[0] = (unsigned char)va_arg(args, int); in vsnprintf()
395 if (precision < 0) in vsnprintf()
415 if (precision < 0) in vsnprintf()
456 if (precision < 0) in vsnprintf()
463 * For octal, a leading 0 is printed only if necessary, in vsnprintf()
470 * For hexadecimal, the leading 0x is skipped if the in vsnprintf()
472 * precision are 0. in vsnprintf()
474 if (base == 16 && precision > 0) in vsnprintf()
491 while (field_width-- > 0) in vsnprintf()
496 /* 0x/0X for hexadecimal */ in vsnprintf()
498 PUTC('0'); in vsnprintf()
503 PUTC('0'); in vsnprintf()
508 while (len-- > 0) { in vsnprintf()
513 if (c32 < 0x80) { in vsnprintf()
519 clen = 1 + (c32 >= 0x800) + (c32 >= 0x10000); in vsnprintf()
525 PUTC('\0'); in vsnprintf()
531 *s8 = (0xf00 >> 1) >> clen; in vsnprintf()
534 *s8-- = 0x80 | (c32 & 0x3f); in vsnprintf()
539 while (len-- > 0) in vsnprintf()
543 while (field_width-- > 0) in vsnprintf()
550 buf[min(pos, size-1)] = '\0'; in vsnprintf()