MCPcopy Create free account
hub / github.com/GoogleChrome/samples / alignMemory

Function alignMemory

mkbitmap/mkbitmap.js:1486–1489  ·  view source on GitHub ↗
(size, alignment)

Source from the content-addressed store, hash-verified

1484 }
1485
1486 function alignMemory(size, alignment) {
1487 assert(alignment, "alignment argument is required");
1488 return Math.ceil(size / alignment) * alignment;
1489 }
1490 function mmapAlloc(size) {
1491 abort('internal error: mmapAlloc called but `emscripten_builtin_memalign` native symbol not exported');
1492 }

Callers

nothing calls this directly

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected