Home
last modified time | relevance | path

Searched refs:ZigZagDecode32 (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc666 #define ZigZagDecode32(x) WireFormatLite::ZigZagDecode32(x) in TEST() macro
679 EXPECT_EQ( 0, ZigZagDecode32(0u)); in TEST()
680 EXPECT_EQ(-1, ZigZagDecode32(1u)); in TEST()
681 EXPECT_EQ( 1, ZigZagDecode32(2u)); in TEST()
682 EXPECT_EQ(-2, ZigZagDecode32(3u)); in TEST()
683 EXPECT_EQ(0x3FFFFFFF, ZigZagDecode32(0x7FFFFFFEu)); in TEST()
684 EXPECT_EQ(0xC0000000, ZigZagDecode32(0x7FFFFFFFu)); in TEST()
685 EXPECT_EQ(0x7FFFFFFF, ZigZagDecode32(0xFFFFFFFEu)); in TEST()
686 EXPECT_EQ(0x80000000, ZigZagDecode32(0xFFFFFFFFu)); in TEST()
712 EXPECT_EQ( 0, ZigZagDecode32(ZigZagEncode32( 0))); in TEST()
[all …]
Dwire_format_lite.h232 static int32 ZigZagDecode32(uint32 n);
644 inline int32 WireFormatLite::ZigZagDecode32(uint32 n) { in ZigZagDecode32() function
Dwire_format_lite_inl.h94 *value = ZigZagDecode32(temp);