Searched refs:ZigZagEncode32 (Results 1 – 4 of 4) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | wire_format_unittest.cc | 538 #define ZigZagEncode32(x) WireFormatLite::ZigZagEncode32(x) in TEST() macro 543 EXPECT_EQ(0u, ZigZagEncode32( 0)); in TEST() 544 EXPECT_EQ(1u, ZigZagEncode32(-1)); in TEST() 545 EXPECT_EQ(2u, ZigZagEncode32( 1)); in TEST() 546 EXPECT_EQ(3u, ZigZagEncode32(-2)); in TEST() 547 EXPECT_EQ(0x7FFFFFFEu, ZigZagEncode32(0x3FFFFFFF)); in TEST() 548 EXPECT_EQ(0x7FFFFFFFu, ZigZagEncode32(0xC0000000)); in TEST() 549 EXPECT_EQ(0xFFFFFFFEu, ZigZagEncode32(0x7FFFFFFF)); in TEST() 550 EXPECT_EQ(0xFFFFFFFFu, ZigZagEncode32(0x80000000)); in TEST() 585 EXPECT_EQ( 0, ZigZagDecode32(ZigZagEncode32( 0))); in TEST() [all …]
|
D | wire_format_lite.h | 222 static uint32 ZigZagEncode32(int32 n); 598 inline uint32 WireFormatLite::ZigZagEncode32(int32 n) { in ZigZagEncode32() function
|
D | wire_format_lite_inl.h | 425 output->WriteVarint32(ZigZagEncode32(value)); in WriteSInt32NoTag() 509 return io::CodedOutputStream::WriteVarint32ToArray(ZigZagEncode32(value), in WriteSInt32NoTagToArray() 706 return io::CodedOutputStream::VarintSize32(ZigZagEncode32(value)); in SInt32Size()
|
D | descriptor.cc | 4335 google::protobuf::internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
|