Lines Matching full:bits
24 * @brief Population count: Count the number of bits set to 1
61 * bits.
64 * - It shall have at least three ones in the least significant 8 bits.
66 * bits.
131 * significant six bits. in util_aa_le32()
186 * significant 16 bits. in util_aa_le32()
231 uint8_t bits; in util_saa_le32() local
263 * values shall differ in at least two bits. in util_saa_le32()
264 * - Find the number of bits required to support 3 times the maximum in util_saa_le32()
266 * - Clear those number many bits in util_saa_le32()
268 * differ in at least two bits. in util_saa_le32()
270 bits = find_msb_set(CONFIG_BT_CTLR_ADV_ISO_SET * 0x03); in util_saa_le32()
271 saa &= ~BIT_MASK(bits); in util_saa_le32()
289 /* 8-bits for d is enough due to wrapping math and requirement to do in util_bis_aa_le32()
294 /* Most significant 6 bits of DW are bit extension of least significant in util_bis_aa_le32()
303 /* Set the bits 25 to 17 of DW */ in util_bis_aa_le32()
307 /* Most significant 16-bits of SAA XOR DW, least significant 16-bit are in util_bis_aa_le32()
322 * @param num_bits Number of bits to extract and convert to value
327 uint8_t shift, byteIdx, bits; in util_get_bits() local
334 bits = MIN(num_bits, 8 - bit_offs); in util_get_bits()
335 value |= ((data[byteIdx] >> bit_offs) & BIT_MASK(bits)) << shift; in util_get_bits()
336 shift += bits; in util_get_bits()
337 num_bits -= bits; in util_get_bits()
346 * Converts a value up to 32 bits to a bitset in a byte array.
350 * @param num_bits Number of bits to set in data
355 uint8_t byteIdx, bits; in util_set_bits() local
360 bits = MIN(num_bits, 8 - bit_offs); in util_set_bits()
361 data[byteIdx] = (data[byteIdx] & ~(BIT_MASK(bits) << bit_offs)) | in util_set_bits()
362 ((value & BIT_MASK(bits)) << bit_offs); in util_set_bits()
363 value >>= bits; in util_set_bits()
364 num_bits -= bits; in util_set_bits()