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

Function _sqlite3Atoi64

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

Source from the content-addressed store, hash-verified

32669 return ($$0203|0);
32670}
32671function _sqlite3Atoi64($0,$1,$2,$3) {
32672 $0 = $0|0;
32673 $1 = $1|0;
32674 $2 = $2|0;
32675 $3 = $3|0;
32676 var $$0$ph = 0, $$01617$i = 0, $$089 = 0, $$090 = 0, $$091$ph = 0, $$093$lcssa = 0, $$093123 = 0, $$095 = 0, $$097$ph = 0, $$098$ph = 0, $$098120 = 0, $$1$i = 0, $$101 = 0, $$194$lcssa = 0, $$194109 = 0, $$199 = 0, $$2$lcssa = 0, $$2115 = 0, $$lcssa104 = 0, $$lcssa107 = 0;
32677 var $$off = 0, $$pn = 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, $26 = 0, $27 = 0;
32678 var $28 = 0, $29 = 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, $44 = 0, $45 = 0, $46 = 0;
32679 var $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, $62 = 0, $63 = 0, $64 = 0;
32680 var $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, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0;
32681 var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $or$cond = 0, label = 0, sp = 0;
32682 sp = STACKTOP;
32683 $4 = $3&255;
32684 $5 = ($3<<24>>24)==(1);
32685 if ($5) {
32686 $$091$ph = 0;$$097$ph = 1;$$098$ph = $0;$$pn = $2;
32687 } else {
32688 $6 = (3 - ($4))|0;
32689 $7 = ($6|0)<($2|0);
32690 L3: do {
32691 if ($7) {
32692 $$093123 = $6;
32693 while(1) {
32694 $8 = (($0) + ($$093123)|0);
32695 $9 = HEAP8[$8>>0]|0;
32696 $10 = ($9<<24>>24)==(0);
32697 if (!($10)) {
32698 $$093$lcssa = $$093123;$$lcssa107 = 1;
32699 break L3;
32700 }
32701 $11 = (($$093123) + 2)|0;
32702 $12 = ($11|0)<($2|0);
32703 if ($12) {
32704 $$093123 = $11;
32705 } else {
32706 $$093$lcssa = $11;$$lcssa107 = 0;
32707 break;
32708 }
32709 }
32710 } else {
32711 $$093$lcssa = $6;$$lcssa107 = 0;
32712 }
32713 } while(0);
32714 $13 = $$093$lcssa ^ 1;
32715 $14 = $4 & 1;
32716 $15 = (($0) + ($14)|0);
32717 $$091$ph = $$lcssa107;$$097$ph = 2;$$098$ph = $15;$$pn = $13;
32718 }
32719 $$0$ph = (($0) + ($$pn)|0);
32720 $16 = ($$098$ph>>>0)<($$0$ph>>>0);
32721 L9: do {
32722 if ($16) {
32723 $$098120 = $$098$ph;
32724 while(1) {
32725 $17 = HEAP8[$$098120>>0]|0;
32726 $18 = $17&255;
32727 $19 = (18220 + ($18)|0);
32728 $20 = HEAP8[$19>>0]|0;

Callers 11

_memIntValueFunction · 0.85
_sumStepFunction · 0.85
_sqlite3VdbeExecFunction · 0.85
_yy_reduceFunction · 0.85
_valueFromExprFunction · 0.85
_sqlite3VdbeMemCastFunction · 0.85
_applyNumericAffinityFunction · 0.85
_sqlite3DecOrHexToI64Function · 0.85
_computeNumericTypeFunction · 0.85
_fts3FilterMethodFunction · 0.85

Calls 3

___muldi3Function · 0.85
_i64AddFunction · 0.85
_i64SubtractFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…