Lines Matching +full:ten +full:- +full:bit
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
36 #define BIT (8) macro
65 [SC_BIT] = { BIT, BITS, "b", "bit" },
66 [SC_KILOBIT] = { BIT, KILOBIT, "Kb", "kbit" },
67 [SC_MEGABIT] = { BIT, MEGABIT, "Mb", "mbit" },
68 [SC_GIGABIT] = { BIT, GIGABIT, "Gb", "gbit" },
69 [SC_TERABIT] = { BIT, TERABIT, "Tb", "tbit" },
81 /* If our index is out of range, default to auto-scaling. */ in get_tbl_ptr()
87 * we can shift our size value right by a factor of ten, in get_tbl_ptr()
92 tmp >= MEGABYTE && idx < SC_BIT - 1; in get_tbl_ptr()
104 return ((double)size * tp->mul / tp->scale); in convert()
114 return (tp->str); in get_string()
125 return (-1); in get_scale()