MCPcopy Index your code
hub / github.com/sql-js/sql.js / _internal_memalign

Function _internal_memalign

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

Source from the content-addressed store, hash-verified

394261 return (0)|0;
394262}
394263function _internal_memalign($0,$1) {
394264 $0 = $0|0;
394265 $1 = $1|0;
394266 var $$ = 0, $$0100 = 0, $$099 = 0, $$1 = 0, $$198 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
394267 var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
394268 var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
394269 var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
394270 var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $9 = 0, label = 0, sp = 0;
394271 sp = STACKTOP;
394272 $2 = ($0>>>0)>(16);
394273 $$ = $2 ? $0 : 16;
394274 $3 = (($$) + -1)|0;
394275 $4 = $3 & $$;
394276 $5 = ($4|0)==(0);
394277 if ($5) {
394278 $$1 = $$;
394279 } else {
394280 $$099 = 16;
394281 while(1) {
394282 $6 = ($$099>>>0)<($$>>>0);
394283 $7 = $$099 << 1;
394284 if ($6) {
394285 $$099 = $7;
394286 } else {
394287 $$1 = $$099;
394288 break;
394289 }
394290 }
394291 }
394292 $8 = (-64 - ($$1))|0;
394293 $9 = ($8>>>0)>($1>>>0);
394294 if (!($9)) {
394295 $10 = (___errno_location()|0);
394296 HEAP32[$10>>2] = 12;
394297 $$198 = 0;
394298 return ($$198|0);
394299 }
394300 $11 = ($1>>>0)<(11);
394301 $12 = (($1) + 11)|0;
394302 $13 = $12 & -8;
394303 $14 = $11 ? 16 : $13;
394304 $15 = (($14) + 12)|0;
394305 $16 = (($15) + ($$1))|0;
394306 $17 = (_malloc($16)|0);
394307 $18 = ($17|0)==(0|0);
394308 if ($18) {
394309 $$198 = 0;
394310 return ($$198|0);
394311 }
394312 $19 = ((($17)) + -8|0);
394313 $20 = $17;
394314 $21 = (($$1) + -1)|0;
394315 $22 = $20 & $21;
394316 $23 = ($22|0)==(0);
394317 do {
394318 if ($23) {
394319 $$0100 = $19;$72 = $19;
394320 } else {

Callers 1

_memalignFunction · 0.85

Calls 3

___errno_locationFunction · 0.85
_mallocFunction · 0.85
_dispose_chunkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…