Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc667 #define ZigZagEncode64(x) WireFormatLite::ZigZagEncode64(x) in TEST() macro
688 EXPECT_EQ(0u, ZigZagEncode64( 0)); in TEST()
689 EXPECT_EQ(1u, ZigZagEncode64(-1)); in TEST()
690 EXPECT_EQ(2u, ZigZagEncode64( 1)); in TEST()
691 EXPECT_EQ(3u, ZigZagEncode64(-2)); in TEST()
692 EXPECT_EQ(ULL(0x000000007FFFFFFE), ZigZagEncode64(LL(0x000000003FFFFFFF))); in TEST()
693 EXPECT_EQ(ULL(0x000000007FFFFFFF), ZigZagEncode64(LL(0xFFFFFFFFC0000000))); in TEST()
694 EXPECT_EQ(ULL(0x00000000FFFFFFFE), ZigZagEncode64(LL(0x000000007FFFFFFF))); in TEST()
695 EXPECT_EQ(ULL(0x00000000FFFFFFFF), ZigZagEncode64(LL(0xFFFFFFFF80000000))); in TEST()
696 EXPECT_EQ(ULL(0xFFFFFFFFFFFFFFFE), ZigZagEncode64(LL(0x7FFFFFFFFFFFFFFF))); in TEST()
[all …]
Dwire_format_lite.h233 static uint64 ZigZagEncode64(int64 n);
648 inline uint64 WireFormatLite::ZigZagEncode64(int64 n) { in ZigZagEncode64() function
Dwire_format_lite_inl.h528 output->WriteVarint64(ZigZagEncode64(value)); in WriteSInt64NoTag()
616 return io::CodedOutputStream::WriteVarint64ToArray(ZigZagEncode64(value), in WriteSInt64NoTagToArray()
815 return io::CodedOutputStream::VarintSize64(ZigZagEncode64(value)); in SInt64Size()
Ddescriptor.cc5342 google::protobuf::internal::WireFormatLite::ZigZagEncode64(value)); in SetInt64()