Lines Matching refs:bytes
47 humanize_number(char *buf, size_t len, int64_t bytes,
94 if (bytes < 0) {
97 if (-bytes < INT64_MAX / 100)
98 bytes *= -100;
100 bytes = -bytes;
107 if (bytes < INT64_MAX / 100)
108 bytes *= 100;
146 for (i = 0; bytes >= max - 50 && i < maxscale; i++)
147 bytes /= divisor;
159 bytes /= divisor;
164 * Cannot go the bytes *= post route, as
165 * that can cause overflow of bytes
170 bytes /= 100;
173 sign * bytes, sep, SCALE2PREFIX(0), suffix);
177 * divided bytes by at least 1000, post <= 100, so ...
179 bytes *= post;
182 if (bytes < 995 && i > 0 && flags & HN_DECIMAL) {
187 b = ((int)bytes + 5) / 10;
195 sign * ((bytes + 50) / 100),