Lines Matching +full:32 +full:- +full:bit
5 * SPDX-License-Identifier: Apache-2.0
21 * @brief find most significant bit set in a 32-bit word
23 * This routine finds the first bit set starting from the most significant bit
24 * in the argument passed in and returns the index of that bit. Bits are
25 * numbered starting at 1 from the least significant bit. A return value of
28 * @return most significant bit set, 0 if @a op is 0
37 return 32 - __builtin_clz(op); in find_msb_set()
43 * @brief find least significant bit set in a 32-bit word
45 * This routine finds the first bit set starting from the least significant bit
46 * in the argument passed in and returns the index of that bit. Bits are
47 * numbered starting at 1 from the least significant bit. A return value of
50 * @return least significant bit set, 0 if @a op is 0
61 * by first clearing all but the lowest set bit. in find_lsb_set()
64 op = op ^ (op & (op - 1)); in find_lsb_set()