Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc541 #define ZigZagDecode64(x) WireFormatLite::ZigZagDecode64(x) in TEST() macro
572 EXPECT_EQ( 0, ZigZagDecode64(0u)); in TEST()
573 EXPECT_EQ(-1, ZigZagDecode64(1u)); in TEST()
574 EXPECT_EQ( 1, ZigZagDecode64(2u)); in TEST()
575 EXPECT_EQ(-2, ZigZagDecode64(3u)); in TEST()
576 EXPECT_EQ(LL(0x000000003FFFFFFF), ZigZagDecode64(ULL(0x000000007FFFFFFE))); in TEST()
577 EXPECT_EQ(LL(0xFFFFFFFFC0000000), ZigZagDecode64(ULL(0x000000007FFFFFFF))); in TEST()
578 EXPECT_EQ(LL(0x000000007FFFFFFF), ZigZagDecode64(ULL(0x00000000FFFFFFFE))); in TEST()
579 EXPECT_EQ(LL(0xFFFFFFFF80000000), ZigZagDecode64(ULL(0x00000000FFFFFFFF))); in TEST()
580 EXPECT_EQ(LL(0x7FFFFFFFFFFFFFFF), ZigZagDecode64(ULL(0xFFFFFFFFFFFFFFFE))); in TEST()
[all …]
Dwire_format_lite.h225 static int64 ZigZagDecode64(uint64 n);
612 inline int64 WireFormatLite::ZigZagDecode64(uint64 n) { in ZigZagDecode64() function
Dwire_format_lite_inl.h99 *value = ZigZagDecode64(temp);