Home
last modified time | relevance | path

Searched refs:ZigZagEncode (Results 1 – 7 of 7) sorted by relevance

/external/perfetto/src/protozero/
Dproto_utils_unittest.cc96 EXPECT_EQ(0u, ZigZagEncode(0)); in TEST()
97 EXPECT_EQ(1u, ZigZagEncode(-1)); in TEST()
98 EXPECT_EQ(2u, ZigZagEncode(1)); in TEST()
99 EXPECT_EQ(3u, ZigZagEncode(-2)); in TEST()
100 EXPECT_EQ(4294967293u, ZigZagEncode(-2147483647)); in TEST()
101 EXPECT_EQ(4294967294u, ZigZagEncode(2147483647)); in TEST()
103 ZigZagEncode(std::numeric_limits<int32_t>::min())); in TEST()
105 ZigZagEncode(std::numeric_limits<int64_t>::min())); in TEST()
107 EXPECT_EQ(0, ZigZagDecode(ZigZagEncode(0))); in TEST()
108 EXPECT_EQ(-1, ZigZagDecode(ZigZagEncode(-1))); in TEST()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dwire_format.py100 def ZigZagEncode(value): function
144 return UInt32ByteSize(field_number, ZigZagEncode(int32))
148 return UInt64ByteSize(field_number, ZigZagEncode(int64))
Dwire_format_test.py74 Z = wire_format.ZigZagEncode
Dencoder.py222 _SignedVarintSize, wire_format.ZigZagEncode)
632 wire_format.ZigZagEncode)
/external/perfetto/include/perfetto/protozero/
Dmessage.h111 AppendVarInt(field_id, proto_utils::ZigZagEncode(value)); in AppendSignedVarInt()
Dproto_utils.h142 inline typename std::make_unsigned<T>::type ZigZagEncode(T value) { in ZigZagEncode() function
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dwire_format_test.py70 Z = wire_format.ZigZagEncode