Searched defs:ZigZagEncode64 (Results 1 - 2 of 2) sorted by relevance

/external/protobuf/src/google/protobuf/
H A Dwire_format_unittest.cc671 #define ZigZagEncode64(x) WireFormatLite::ZigZagEncode64(x) macro
692 EXPECT_EQ(0u, ZigZagEncode64( 0));
693 EXPECT_EQ(1u, ZigZagEncode64(-1));
694 EXPECT_EQ(2u, ZigZagEncode64( 1));
695 EXPECT_EQ(3u, ZigZagEncode64(-2));
696 EXPECT_EQ(ULL(0x000000007FFFFFFE), ZigZagEncode64(LL(0x000000003FFFFFFF)));
697 EXPECT_EQ(ULL(0x000000007FFFFFFF), ZigZagEncode64(LL(0xFFFFFFFFC0000000)));
698 EXPECT_EQ(ULL(0x00000000FFFFFFFE), ZigZagEncode64(LL(0x000000007FFFFFFF)));
699 EXPECT_EQ(ULL(0x00000000FFFFFFFF), ZigZagEncode64(L
[all...]
H A Dwire_format_lite.h233 static uint64 ZigZagEncode64(int64 n);
670 inline uint64 WireFormatLite::ZigZagEncode64(int64 n) { function in class:google::protobuf::internal::WireFormatLite

Completed in 205 milliseconds