Home
last modified time | relevance | path

Searched refs:MakeTagFixed (Results 1 – 3 of 3) sorted by relevance

/external/perfetto/src/protozero/
Dproto_utils_unittest.cc70 EXPECT_EQ(0x09u, MakeTagFixed<uint64_t>(1)); in TEST()
72 EXPECT_EQ(0x0Du, MakeTagFixed<uint32_t>(1)); in TEST()
75 EXPECT_EQ(0x03F9u, MakeTagFixed<int64_t>(0x7F)); in TEST()
77 EXPECT_EQ(0x03FDu, MakeTagFixed<int32_t>(0x7F)); in TEST()
80 EXPECT_EQ(0x0401u, MakeTagFixed<double>(0x80)); in TEST()
82 EXPECT_EQ(0x0405u, MakeTagFixed<float>(0x80)); in TEST()
85 EXPECT_EQ(0x01FFF9u, MakeTagFixed<int64_t>(0x3fff)); in TEST()
87 EXPECT_EQ(0x01FFFDu, MakeTagFixed<int32_t>(0x3fff)); in TEST()
90 EXPECT_EQ(0x020001u, MakeTagFixed<int64_t>(0x4000)); in TEST()
92 EXPECT_EQ(0x020005u, MakeTagFixed<int32_t>(0x4000)); in TEST()
/external/perfetto/include/perfetto/protozero/
Dproto_utils.h128 constexpr uint32_t MakeTagFixed(uint32_t field_id) { in MakeTagFixed() function
Dmessage.h139 pos = proto_utils::WriteVarInt(proto_utils::MakeTagFixed<T>(field_id), pos); in AppendFixed()