MCPcopy
hub / github.com/sql-js/sql.js / _memalign

Function _memalign

js/sql-debug.js:394246–394262  ·  view source on GitHub ↗
($0,$1)

Source from the content-addressed store, hash-verified

394244 }
394245}
394246function _memalign($0,$1) {
394247 $0 = $0|0;
394248 $1 = $1|0;
394249 var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
394250 sp = STACKTOP;
394251 $2 = ($0>>>0)<(9);
394252 if ($2) {
394253 $3 = (_malloc($1)|0);
394254 $$0 = $3;
394255 return ($$0|0);
394256 } else {
394257 $4 = (_internal_memalign($0,$1)|0);
394258 $$0 = $4;
394259 return ($$0|0);
394260 }
394261 return (0)|0;
394262}
394263function _internal_memalign($0,$1) {
394264 $0 = $0|0;
394265 $1 = $1|0;

Callers 5

___syscall192Function · 0.85
___syscall192Function · 0.85
___syscall192Function · 0.85
___syscall192Function · 0.85
___syscall192Function · 0.85

Calls 2

_mallocFunction · 0.85
_internal_memalignFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…