Home
last modified time | relevance | path

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

/third_party/protobuf/src/google/protobuf/
Dwire_format_unittest.cc758 #define ZigZagEncode64(x) WireFormatLite::ZigZagEncode64(x) in TEST() macro
779 EXPECT_EQ(0u, ZigZagEncode64(0)); in TEST()
780 EXPECT_EQ(1u, ZigZagEncode64(-1)); in TEST()
781 EXPECT_EQ(2u, ZigZagEncode64(1)); in TEST()
782 EXPECT_EQ(3u, ZigZagEncode64(-2)); in TEST()
783 EXPECT_EQ(ULL(0x000000007FFFFFFE), ZigZagEncode64(LL(0x000000003FFFFFFF))); in TEST()
784 EXPECT_EQ(ULL(0x000000007FFFFFFF), ZigZagEncode64(LL(0xFFFFFFFFC0000000))); in TEST()
785 EXPECT_EQ(ULL(0x00000000FFFFFFFE), ZigZagEncode64(LL(0x000000007FFFFFFF))); in TEST()
786 EXPECT_EQ(ULL(0x00000000FFFFFFFF), ZigZagEncode64(LL(0xFFFFFFFF80000000))); in TEST()
787 EXPECT_EQ(ULL(0xFFFFFFFFFFFFFFFE), ZigZagEncode64(LL(0x7FFFFFFFFFFFFFFF))); in TEST()
[all …]
Dwire_format_lite.h244 static uint64 ZigZagEncode64(int64 n);
860 inline uint64 WireFormatLite::ZigZagEncode64(int64 n) { in ZigZagEncode64() function
1297 output->WriteVarint64(ZigZagEncode64(value)); in WriteSInt64NoTag()
1384 return io::CodedOutputStream::WriteVarint64ToArray(ZigZagEncode64(value), in WriteSInt64NoTagToArray()
1743 return io::CodedOutputStream::VarintSize64(ZigZagEncode64(value)); in SInt64Size()
Dwire_format_lite.cc653 x = WireFormatLite::ZigZagEncode64(x); in VarintSize64()
Ddescriptor.cc7225 number, internal::WireFormatLite::ZigZagEncode64(value)); in SetInt64()
/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream.h776 return WriteVarintPacked(num, r, size, ptr, ZigZagEncode64); in WriteSInt64Packed()
895 static uint64 ZigZagEncode64(int64 v) { in ZigZagEncode64() function
/third_party/protobuf/conformance/
Dbinary_json_conformance_suite.cc146 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64()