Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_sleb128_test.cpp94 sleb128_decoder decoder(&encoding[0], encoding.size()); in TEST() local
96 EXPECT_EQ(624485U, decoder.pop_front()); in TEST()
98 EXPECT_EQ(0U, decoder.pop_front()); in TEST()
99 EXPECT_EQ(1U, decoder.pop_front()); in TEST()
100 EXPECT_EQ(63U, decoder.pop_front()); in TEST()
101 EXPECT_EQ(64U, decoder.pop_front()); in TEST()
102 EXPECT_EQ(static_cast<size_t>(-1), decoder.pop_front()); in TEST()
103 EXPECT_EQ(static_cast<size_t>(-624485), decoder.pop_front()); in TEST()
104 EXPECT_EQ(2147483647U, decoder.pop_front()); in TEST()
105 EXPECT_EQ(static_cast<size_t>(-2147483648), decoder.pop_front()); in TEST()
[all …]
Dlinker_reloc_iterators.h48 inline bool for_all_packed_relocs(sleb128_decoder decoder, F&& callback) { in for_all_packed_relocs() argument
49 const size_t num_relocs = decoder.pop_front(); in for_all_packed_relocs()
52 .r_offset = decoder.pop_front(), in for_all_packed_relocs()
56 const size_t group_size = decoder.pop_front(); in for_all_packed_relocs()
57 const size_t group_flags = decoder.pop_front(); in for_all_packed_relocs()
62 group_r_offset_delta = decoder.pop_front(); in for_all_packed_relocs()
65 reloc.r_info = decoder.pop_front(); in for_all_packed_relocs()
75 reloc.r_addend += decoder.pop_front(); in for_all_packed_relocs()
90 reloc.r_offset += decoder.pop_front(); in for_all_packed_relocs()
93 reloc.r_info = decoder.pop_front(); in for_all_packed_relocs()
[all …]
Dlinker_relocate.cpp556 static bool packed_relocate_impl(Relocator& relocator, sleb128_decoder decoder) { in packed_relocate_impl() argument
557 return for_all_packed_relocs(decoder, [&](const rel_t& reloc) { in packed_relocate_impl()