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

Function parser_aligned_size

Src/Base/Parser/AMReX_Parser_Y.cpp:297–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295namespace {
296
297std::size_t
298parser_aligned_size (std::size_t N)
299{
300 const unsigned int align_size = 16;
301 std::size_t x = N + (align_size-1);
302 x -= x & (align_size-1);
303 return x;
304}
305
306void*
307parser_allocate (struct amrex_parser* my_parser, std::size_t N)

Callers 2

parser_allocateFunction · 0.85
parser_ast_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected