MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / aligned_alloc_size

Function aligned_alloc_size

tools/transform.cpp:971–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969}
970
971static uint64_t aligned_alloc_size(uint64_t size, uint64_t align) {
972 if (size <= align)
973 return align;
974 return add_saturate(size, align - 1);
975}
976
977static void calculateAndInitConstants(Transform &t) {
978 if (!bits_program_pointer)

Callers 1

Calls 1

add_saturateFunction · 0.85

Tested by

no test coverage detected