Lines Matching refs:hrs

313     UTIL_HumanReadableSize_t hrs;  in UTIL_makeHumanReadableSize()  local
319 hrs.value = (double)size / (1ull << 20); in UTIL_makeHumanReadableSize()
320 hrs.suffix = " MiB"; in UTIL_makeHumanReadableSize()
323 hrs.precision = 2; in UTIL_makeHumanReadableSize()
325 hrs.value = (double)size; in UTIL_makeHumanReadableSize()
326 hrs.suffix = " B"; in UTIL_makeHumanReadableSize()
327 hrs.precision = 0; in UTIL_makeHumanReadableSize()
332 hrs.value = (double)size / (1ull << 60); in UTIL_makeHumanReadableSize()
333 hrs.suffix = " EiB"; in UTIL_makeHumanReadableSize()
335 hrs.value = (double)size / (1ull << 50); in UTIL_makeHumanReadableSize()
336 hrs.suffix = " PiB"; in UTIL_makeHumanReadableSize()
338 hrs.value = (double)size / (1ull << 40); in UTIL_makeHumanReadableSize()
339 hrs.suffix = " TiB"; in UTIL_makeHumanReadableSize()
341 hrs.value = (double)size / (1ull << 30); in UTIL_makeHumanReadableSize()
342 hrs.suffix = " GiB"; in UTIL_makeHumanReadableSize()
344 hrs.value = (double)size / (1ull << 20); in UTIL_makeHumanReadableSize()
345 hrs.suffix = " MiB"; in UTIL_makeHumanReadableSize()
347 hrs.value = (double)size / (1ull << 10); in UTIL_makeHumanReadableSize()
348 hrs.suffix = " KiB"; in UTIL_makeHumanReadableSize()
350 hrs.value = (double)size; in UTIL_makeHumanReadableSize()
351 hrs.suffix = " B"; in UTIL_makeHumanReadableSize()
354 if (hrs.value >= 100 || (U64)hrs.value == size) { in UTIL_makeHumanReadableSize()
355 hrs.precision = 0; in UTIL_makeHumanReadableSize()
356 } else if (hrs.value >= 10) { in UTIL_makeHumanReadableSize()
357 hrs.precision = 1; in UTIL_makeHumanReadableSize()
358 } else if (hrs.value > 1) { in UTIL_makeHumanReadableSize()
359 hrs.precision = 2; in UTIL_makeHumanReadableSize()
361 hrs.precision = 3; in UTIL_makeHumanReadableSize()
365 return hrs; in UTIL_makeHumanReadableSize()