Lines Matching +full:msb +full:- +full:-
1 // SPDX-License-Identifier: LGPL-2.1-or-later
3 * Provides fixed-point logarithm operations.
57 unsigned int msb; in intlog2() local
67 /* first detect the msb (count begins at 0) */ in intlog2()
68 msb = fls(value) - 1; in intlog2()
74 * where x = msb and therefore 1 <= y < 2 in intlog2()
76 * so that msb is bit 31 in intlog2()
77 * 0x00231f56 -> 0x8C7D5800 in intlog2()
78 * the result is y * 2^31 -> "significand" in intlog2()
84 significand = value << (31 - msb); in intlog2()
97 * (error / 0x800000) * (logtable_next - logtable_current) in intlog2()
103 ((logtable[(logentry + 1) % ARRAY_SIZE(logtable)] - in intlog2()
107 return ((msb << 24) + (logtable[logentry] << 8) + interpolation); in intlog2()