Searched refs:BitfieldMask (Results 1 – 5 of 5) sorted by relevance
43 inline uint64_t BitfieldMask(uint32_t len) { in BitfieldMask() function49 *value_out &= ~(BitfieldMask(len) << lsb_offset); in BitfieldClear()54 *value_out &= ~(BitfieldMask(len) << lsb_offset); in BitfieldClear()59 *value_out &= ~(BitfieldMask(len) << lsb_offset); in BitfieldClear()64 *value_out &= ~(BitfieldMask(len) << lsb_offset); in BitfieldClear()68 return ((value) >> (lsb_offset)) & BitfieldMask(len); in BitfieldGet()77 *value_out |= (new_value & BitfieldMask(len)) << (lsb_offset); in BitfieldSet()86 *value_out |= (new_value & BitfieldMask(len)) << (lsb_offset); in BitfieldSet()95 *value_out |= (new_value & BitfieldMask(len)) << (lsb_offset); in BitfieldSet()104 *value_out |= (new_value & BitfieldMask(len)) << (lsb_offset); in BitfieldSet()
28 TEST(BitUtilTest, BitfieldMask) { in TEST() argument30 EXPECT_THAT(bit_util::BitfieldMask(/*len=*/0), Eq(0b0)); in TEST()31 EXPECT_THAT(bit_util::BitfieldMask(/*len=*/1), Eq(0b01)); in TEST()34 EXPECT_THAT(bit_util::BitfieldMask(/*len=*/16), Eq(0b01111111111111111)); in TEST()38 bit_util::BitfieldMask(/*len=*/63), in TEST()
816 BitfieldMask = 0xFF800000, enumerator
534 switch (instr->Mask(BitfieldMask)) { in VisitBitfield()
3490 switch (instr->Mask(BitfieldMask)) { in VisitBitfield()