MCPcopy Create free account
hub / github.com/avast/retdec / align

Function align

src/bin2llvmir/optimizations/decoder/decoder_ranges.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13inline retdec::common::Address align(
14 const retdec::common::Address& s,
15 unsigned a)
16{
17 return a && s % a ? retdec::common::Address(s + a - (s % a)) : s;
18}
19
20} // namespace anonymous
21

Callers 3

addPrimaryMethod · 0.85
addAlternativeMethod · 0.85
removeMethod · 0.85

Calls 1

AddressClass · 0.85

Tested by

no test coverage detected