Home
last modified time | relevance | path

Searched refs:BitfieldMask (Results 1 – 5 of 5) sorted by relevance

/external/icing/icing/util/
Dbit-util.h43 inline uint64_t BitfieldMask(uint32_t len) { in BitfieldMask() function
49 *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()
Dbit-util_test.cc28 TEST(BitUtilTest, BitfieldMask) { in TEST() argument
30 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()
/external/vixl/src/aarch64/
Dconstants-aarch64.h816 BitfieldMask = 0xFF800000, enumerator
Ddisasm-aarch64.cc534 switch (instr->Mask(BitfieldMask)) { in VisitBitfield()
Dsimulator-aarch64.cc3490 switch (instr->Mask(BitfieldMask)) { in VisitBitfield()