Searched refs:ZigZagEncode64 (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | wire_format_unittest.cc | 752 #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 …]
|
D | wire_format_lite.h | 243 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()
|
D | wire_format_lite.cc | 660 x = WireFormatLite::ZigZagEncode64(x); in VarintSize64()
|
D | descriptor.cc | 7086 number, internal::WireFormatLite::ZigZagEncode64(value)); in SetInt64()
|
/external/protobuf/conformance/ |
D | binary_json_conformance_suite.cc | 146 string zz64(int64_t x) { return varint(WireFormatLite::ZigZagEncode64(x)); } in zz64()
|