MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / iparser_aligned_size

Function iparser_aligned_size

Src/Base/Parser/AMReX_IParser_Y.cpp:227–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225namespace {
226
227std::size_t
228iparser_aligned_size (std::size_t N)
229{
230 const unsigned int align_size = 16;
231 std::size_t x = N + (align_size-1);
232 x -= x & (align_size-1);
233 return x;
234}
235
236void*
237iparser_allocate (struct amrex_iparser* my_iparser, std::size_t N)

Callers 2

iparser_allocateFunction · 0.85
iparser_ast_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected