Lines Matching defs:width
66 void pstat(uint64_t n, int width);
234 pstat(uint64_t n, int width)
237 if (width >= sizeof(buf)) {
238 width = sizeof(buf) -1;
246 int w = snprintf(buf, sizeof(buf), "%*llu", width, n);
247 if (w > width) {
248 w = snprintf(buf, sizeof(buf), "%*lluK", width -1, n / 1000);
249 if (w > width) {
250 w = snprintf(buf, sizeof(buf), "%*lluM", width -1, n / 1000000);
251 if (w > width) {
252 w = snprintf(buf, sizeof(buf), "%*lluG", width -1, n / 1000000000);