Lines Matching refs:u4
140 BitStructUint</*lsb=*/3, /*width=*/4> u4; variable
149 BitStructUint</*lsb=*/3, /*width=*/4> u4; in TEST() local
154 EXPECT_EQ(1u, sizeof(u4)); in TEST()
163 EXPECT_EQ(1u, sizeof(tst.u4)); in TEST()
168 tst.u4 = 0b1010; in TEST()
172 uint8_t read_u4 = tst.u4; in TEST()
187 ++tst.u4; in TEST()
188 EXPECT_EQ(static_cast<uint8_t>(0b1011), static_cast<uint8_t>(tst.u4)); in TEST()
189 --tst.u4; in TEST()
190 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
193 uint8_t read_and_convert = tst.u4++; in TEST()
195 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
196 read_and_convert = tst.u4--; in TEST()
198 EXPECT_EQ(static_cast<uint8_t>(0b1010), static_cast<uint8_t>(tst.u4)); in TEST()
201 tst.u4 = 0b1010; in TEST()
202 EXPECT_TRUE(static_cast<bool>(tst.u4)); in TEST()
203 bool succ = tst.u4 ? true : false; in TEST()
206 tst.u4 = 0; in TEST()
207 EXPECT_FALSE(static_cast<bool>(tst.u4)); in TEST()
260 BitStructUint</*lsb=*/3, /*width=*/4> u4; variable
279 tst.u4 = all_1s.u4; in TEST()