Home
last modified time | relevance | path

Searched refs:ZigZagEncode32 (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc669 #define ZigZagEncode32(x) WireFormatLite::ZigZagEncode32(x) in TEST() macro
674 EXPECT_EQ(0u, ZigZagEncode32( 0)); in TEST()
675 EXPECT_EQ(1u, ZigZagEncode32(-1)); in TEST()
676 EXPECT_EQ(2u, ZigZagEncode32( 1)); in TEST()
677 EXPECT_EQ(3u, ZigZagEncode32(-2)); in TEST()
678 EXPECT_EQ(0x7FFFFFFEu, ZigZagEncode32(0x3FFFFFFF)); in TEST()
679 EXPECT_EQ(0x7FFFFFFFu, ZigZagEncode32(0xC0000000)); in TEST()
680 EXPECT_EQ(0xFFFFFFFEu, ZigZagEncode32(0x7FFFFFFF)); in TEST()
681 EXPECT_EQ(0xFFFFFFFFu, ZigZagEncode32(0x80000000)); in TEST()
716 EXPECT_EQ( 0, ZigZagDecode32(ZigZagEncode32( 0))); in TEST()
[all …]
Dwire_format_lite_inl.h540 output->WriteVarint32(ZigZagEncode32(value)); in WriteSInt32NoTag()
627 return io::CodedOutputStream::WriteVarint32ToArray(ZigZagEncode32(value), in WriteSInt32NoTagToArray()
828 return io::CodedOutputStream::VarintSize32(ZigZagEncode32(value)); in SInt32Size()
Dwire_format_lite.h231 static uint32 ZigZagEncode32(int32 n);
661 inline uint32 WireFormatLite::ZigZagEncode32(int32 n) { in ZigZagEncode32() function
Ddescriptor.cc6175 google::protobuf::internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
/external/protobuf/conformance/
Dconformance_test.cc136 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()