Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc752 #define ZigZagEncode64(x) WireFormatLite::ZigZagEncode64(x) in TEST() macro
773 EXPECT_EQ(0u, ZigZagEncode64(0)); in TEST()
774 EXPECT_EQ(1u, ZigZagEncode64(-1)); in TEST()
775 EXPECT_EQ(2u, ZigZagEncode64(1)); in TEST()
776 EXPECT_EQ(3u, ZigZagEncode64(-2)); in TEST()
777 EXPECT_EQ(ULL(0x000000007FFFFFFE), ZigZagEncode64(LL(0x000000003FFFFFFF))); in TEST()
778 EXPECT_EQ(ULL(0x000000007FFFFFFF), ZigZagEncode64(LL(0xFFFFFFFFC0000000))); in TEST()
779 EXPECT_EQ(ULL(0x00000000FFFFFFFE), ZigZagEncode64(LL(0x000000007FFFFFFF))); in TEST()
780 EXPECT_EQ(ULL(0x00000000FFFFFFFF), ZigZagEncode64(LL(0xFFFFFFFF80000000))); in TEST()
781 EXPECT_EQ(ULL(0xFFFFFFFFFFFFFFFE), ZigZagEncode64(LL(0x7FFFFFFFFFFFFFFF))); in TEST()
[all …]
Dwire_format_lite.h243 static uint64 ZigZagEncode64(int64 n);
864 inline uint64 WireFormatLite::ZigZagEncode64(int64 n) { in ZigZagEncode64() function
1299 output->WriteVarint64(ZigZagEncode64(value)); in WriteSInt64NoTag()
1386 return io::CodedOutputStream::WriteVarint64ToArray(ZigZagEncode64(value), in WriteSInt64NoTagToArray()
1741 return io::CodedOutputStream::VarintSize64(ZigZagEncode64(value)); in SInt64Size()
Dwire_format_lite.cc660 x = WireFormatLite::ZigZagEncode64(x); in VarintSize64()
Ddescriptor.cc7086 number, internal::WireFormatLite::ZigZagEncode64(value)); in SetInt64()
/external/protobuf/conformance/
Dbinary_json_conformance_suite.cc146 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64()