Home | History | Annotate | Download | only in lib

Lines Matching defs:unit

946   int len, unit, divisor = (style&HR_1000) ? 1000 : 1024;
952 for (unit = 0; num > 999; unit++) num = ((snap = num)+(divisor/2))/divisor;
954 if (unit && len == 1) {
963 if (unit) {
964 unit = " kMGTPE"[unit];
966 if (!(style&HR_1000)) unit = toupper(unit);
967 buf[len++] = unit;