Home | History | Annotate | Download | only in lib

Lines Matching refs:unit

89  * @name Unit Pretty-Printing
96 * @arg unit destination unit pointer
99 * unit. The chosen unit is assigned to \a unit.
101 * @return The cancelled down byte counter in the new unit.
103 double nl_cancel_down_bytes(unsigned long long l, char **unit)
106 *unit = "TiB";
109 *unit = "GiB";
112 *unit = "MiB";
115 *unit = "KiB";
118 *unit = "B";
126 * @arg unit destination unit pointer
129 * unit. The chosen unit is assigned to \a unit.
131 * @return The cancelled down bit counter in the new unit.
133 double nl_cancel_down_bits(unsigned long long l, char **unit)
136 *unit = "Tbit";
139 *unit = "Gbit";
142 *unit = "Mbit";
145 *unit = "Kbit";
148 *unit = "bit";
157 * @arg unit destination unit pointer
160 * reasonable unit. The chosen unit is assigned to \a unit.
162 * @return The cancelled down microsecond in the new unit
164 double nl_cancel_down_us(uint32_t l, char **unit)
167 *unit = "s";
170 *unit = "ms";
173 *unit = "us";
181 * @name Generic Unit Translations
410 #define _SPLIT(idx, unit) if ((split[idx] = msec / unit) > 0) msec %= unit