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

Function _putVarint64

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

Source from the content-addressed store, hash-verified

304536 return ($$0|0);
304537}
304538function _putVarint64($0,$1,$2) {
304539 $0 = $0|0;
304540 $1 = $1|0;
304541 $2 = $2|0;
304542 var $$0 = 0, $$02736 = 0, $$031 = 0, $$135 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
304543 var $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, $42 = 0, $43 = 0;
304544 var $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, $60 = 0, $61 = 0;
304545 var $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
304546 sp = STACKTOP;
304547 STACKTOP = STACKTOP + 16|0;
304548 $3 = sp;
304549 $4 = ($2>>>0)>(16777215);
304550 $5 = ($1>>>0)>(4294967295);
304551 $6 = ($2|0)==(16777215);
304552 $7 = $6 & $5;
304553 $8 = $4 | $7;
304554 if ($8) {
304555 $9 = $1&255;
304556 $10 = ((($0)) + 8|0);
304557 HEAP8[$10>>0] = $9;
304558 $11 = (_bitshift64Lshr(($1|0),($2|0),8)|0);
304559 $12 = tempRet0;
304560 $13 = $11&255;
304561 $14 = $13 | -128;
304562 $15 = ((($0)) + 7|0);
304563 HEAP8[$15>>0] = $14;
304564 $16 = (_bitshift64Lshr(($1|0),($2|0),15)|0);
304565 $17 = tempRet0;
304566 $18 = $16&255;
304567 $19 = $18 | -128;
304568 $20 = ((($0)) + 6|0);
304569 HEAP8[$20>>0] = $19;
304570 $21 = (_bitshift64Lshr(($1|0),($2|0),22)|0);
304571 $22 = tempRet0;
304572 $23 = $21&255;
304573 $24 = $23 | -128;
304574 $25 = ((($0)) + 5|0);
304575 HEAP8[$25>>0] = $24;
304576 $26 = (_bitshift64Lshr(($1|0),($2|0),29)|0);
304577 $27 = tempRet0;
304578 $28 = $26&255;
304579 $29 = $28 | -128;
304580 $30 = ((($0)) + 4|0);
304581 HEAP8[$30>>0] = $29;
304582 $31 = (_bitshift64Lshr(($1|0),($2|0),36)|0);
304583 $32 = tempRet0;
304584 $33 = $31&255;
304585 $34 = $33 | -128;
304586 $35 = ((($0)) + 3|0);
304587 HEAP8[$35>>0] = $34;
304588 $36 = (_bitshift64Lshr(($1|0),($2|0),43)|0);
304589 $37 = tempRet0;
304590 $38 = $36&255;
304591 $39 = $38 | -128;
304592 $40 = ((($0)) + 2|0);
304593 HEAP8[$40>>0] = $39;
304594 $41 = (_bitshift64Lshr(($1|0),($2|0),50)|0);
304595 $42 = tempRet0;

Callers 5

_sqlite3VdbeExecFunction · 0.85
_sqlite3BtreeInsertFunction · 0.85
_vdbeSorterFlushPMAFunction · 0.85
_vdbeIncrPopulateFunction · 0.85
_balanceFunction · 0.85

Calls 1

_bitshift64LshrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…