Lines Matching refs:u4
154 BITSTRUCT_UINT(/*lsb=*/3, /*width=*/4) u4; variable
166 EXPECT_EQ(1u, sizeof(tst.u4)); in TEST()
171 tst.u4 = 0b1010; in TEST()
175 uint8_t read_u4 = tst.u4; in TEST()
190 ++tst.u4; in TEST()
191 EXPECT_EQ(static_cast<uint8_t>(0b1011), static_cast<uint8_t>(tst.u4)); in TEST()
192 --tst.u4; in TEST()
193 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
196 uint8_t read_and_convert = tst.u4++; in TEST()
198 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
199 read_and_convert = tst.u4--; in TEST()
201 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
204 tst.u4 = 0b1010; in TEST()
205 EXPECT_TRUE(static_cast<bool>(tst.u4)); in TEST()
206 bool succ = tst.u4 ? true : false; in TEST()
209 tst.u4 = 0; in TEST()
210 EXPECT_FALSE(static_cast<bool>(tst.u4)); in TEST()
263 BITSTRUCT_UINT(/*lsb=*/3, /*width=*/4) u4; variable
282 tst.u4 = all_1s.u4; in TEST()