MCPcopy Create free account
hub / github.com/sql-js/sql.js / alignUp

Function alignUp

js/sql-debug.js:1100–1105  ·  view source on GitHub ↗
(x, multiple)

Source from the content-addressed store, hash-verified

1098var MIN_TOTAL_MEMORY = 16777216;
1099
1100function alignUp(x, multiple) {
1101 if (x % multiple > 0) {
1102 x += multiple - (x % multiple);
1103 }
1104 return x;
1105}
1106
1107var HEAP,
1108/** @type {ArrayBuffer} */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…