Home
last modified time | relevance | path

Searched refs:ZigZagEncodedSize (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_varint/
Dvarint_test.cc1039 TEST(Varint, ZigZagEncodedSize) { in TEST() argument
1040 EXPECT_EQ(ZigZagEncodedSize(int64_t(0)), 1u); in TEST()
1041 EXPECT_EQ(ZigZagEncodedSize(int64_t(-1)), 1u); in TEST()
1042 EXPECT_EQ(ZigZagEncodedSize(int64_t(1)), 1u); in TEST()
1043 EXPECT_EQ(ZigZagEncodedSize(int64_t(-64)), 1u); in TEST()
1044 EXPECT_EQ(ZigZagEncodedSize(int64_t(-65)), 2u); in TEST()
1045 EXPECT_EQ(ZigZagEncodedSize(int64_t(63)), 1u); in TEST()
1046 EXPECT_EQ(ZigZagEncodedSize(int64_t(64)), 2u); in TEST()
1047 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::min()), 2u); in TEST()
1048 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::max()), 2u); in TEST()
[all …]
Ddocs.rst27 .. cpp:function:: size_t ZigZagEncodedSize(int64_t integer)
Dvarint.cc158 return ZigZagEncodedSize(integer); in pw_varint_ZigZagEncodedSize()
/external/pigweed/pw_varint/public/pw_varint/
Dvarint.h197 constexpr size_t ZigZagEncodedSize(int64_t integer) { in ZigZagEncodedSize() function