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.cc671 #define ZigZagEncode64(x) WireFormatLite::ZigZagEncode64(x) in TEST() macro
692 EXPECT_EQ(0u, ZigZagEncode64( 0)); in TEST()
693 EXPECT_EQ(1u, ZigZagEncode64(-1)); in TEST()
694 EXPECT_EQ(2u, ZigZagEncode64( 1)); in TEST()
695 EXPECT_EQ(3u, ZigZagEncode64(-2)); in TEST()
696 EXPECT_EQ(ULL(0x000000007FFFFFFE), ZigZagEncode64(LL(0x000000003FFFFFFF))); in TEST()
697 EXPECT_EQ(ULL(0x000000007FFFFFFF), ZigZagEncode64(LL(0xFFFFFFFFC0000000))); in TEST()
698 EXPECT_EQ(ULL(0x00000000FFFFFFFE), ZigZagEncode64(LL(0x000000007FFFFFFF))); in TEST()
699 EXPECT_EQ(ULL(0x00000000FFFFFFFF), ZigZagEncode64(LL(0xFFFFFFFF80000000))); in TEST()
700 EXPECT_EQ(ULL(0xFFFFFFFFFFFFFFFE), ZigZagEncode64(LL(0x7FFFFFFFFFFFFFFF))); in TEST()
[all …]
Dwire_format_lite_inl.h544 output->WriteVarint64(ZigZagEncode64(value)); in WriteSInt64NoTag()
632 return io::CodedOutputStream::WriteVarint64ToArray(ZigZagEncode64(value), in WriteSInt64NoTagToArray()
831 return io::CodedOutputStream::VarintSize64(ZigZagEncode64(value)); in SInt64Size()
Dwire_format_lite.h233 static uint64 ZigZagEncode64(int64 n);
670 inline uint64 WireFormatLite::ZigZagEncode64(int64 n) { in ZigZagEncode64() function
Ddescriptor.cc6197 google::protobuf::internal::WireFormatLite::ZigZagEncode64(value)); in SetInt64()
/external/protobuf/conformance/
Dconformance_test.cc137 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64()