Lines Matching +full:msb +full:- +full:-
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
14 * count_leading_zeros - Count the number of zeros from the MSB back
17 * Count the number of leading zeros from the MSB going towards the LSB in @x.
19 * If the MSB of @x is set, the result is 0.
20 * If only the LSB of @x is set, then the result is BITS_PER_LONG-1.
26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
28 return BITS_PER_LONG - fls64(x); in count_leading_zeros()
34 * count_trailing_zeros - Count the number of zeros from the LSB forwards
37 * Count the number of trailing zeros from the LSB going towards the MSB in @x.
40 * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
45 #define COUNT_TRAILING_ZEROS_0 (-1) in count_trailing_zeros()