Lines Matching refs:x
30 static char *u2s(uintmax_t x, unsigned base, bool uppercase, char *s,
33 static char *d2s(intmax_t x, char sign, char *s, size_t *slen_p);
35 static char *o2s(uintmax_t x, bool alt_form, char *s, size_t *slen_p);
37 static char *x2s(uintmax_t x, bool alt_form, bool uppercase, char *s,
215 u2s(uintmax_t x, unsigned base, bool uppercase, char *s, size_t *slen_p) in u2s() argument
225 s[i] = "0123456789"[x % (uint64_t)10]; in u2s()
226 x /= (uint64_t)10; in u2s()
227 } while (x > 0); in u2s()
236 s[i] = digits[x & 0xf]; in u2s()
237 x >>= 4; in u2s()
238 } while (x > 0); in u2s()
248 s[i] = digits[x % (uint64_t)base]; in u2s()
249 x /= (uint64_t)base; in u2s()
250 } while (x > 0); in u2s()
258 d2s(intmax_t x, char sign, char *s, size_t *slen_p) in d2s() argument
262 if ((neg = (x < 0))) in d2s()
263 x = -x; in d2s()
264 s = u2s(x, 10, false, s, slen_p); in d2s()
284 o2s(uintmax_t x, bool alt_form, char *s, size_t *slen_p) in o2s() argument
287 s = u2s(x, 8, false, s, slen_p); in o2s()
297 x2s(uintmax_t x, bool alt_form, bool uppercase, char *s, size_t *slen_p) in x2s() argument
300 s = u2s(x, 16, uppercase, s, slen_p); in x2s()