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

Function _sqlite3_result_int

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

Source from the content-addressed store, hash-verified

86443 return;
86444}
86445function _sqlite3_result_int($0,$1) {
86446 $0 = $0|0;
86447 $1 = $1|0;
86448 var $10 = 0, $11 = 0, $12 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
86449 sp = STACKTOP;
86450 $2 = HEAP32[$0>>2]|0;
86451 $3 = ($1|0)<(0);
86452 $4 = $3 << 31 >> 31;
86453 $5 = ((($2)) + 8|0);
86454 $6 = HEAP16[$5>>1]|0;
86455 $7 = $6 & 9312;
86456 $8 = ($7<<16>>16)==(0);
86457 if ($8) {
86458 $9 = $2;
86459 $10 = $9;
86460 HEAP32[$10>>2] = $1;
86461 $11 = (($9) + 4)|0;
86462 $12 = $11;
86463 HEAP32[$12>>2] = $4;
86464 HEAP16[$5>>1] = 4;
86465 return;
86466 } else {
86467 _vdbeReleaseAndSetInt64($2,$1,$4);
86468 return;
86469 }
86470}
86471function _sqlite3_result_int64($0,$1,$2) {
86472 $0 = $0|0;
86473 $1 = $1|0;

Callers 2

_differenceFuncFunction · 0.85
_charindexFuncFunction · 0.85

Calls 1

_vdbeReleaseAndSetInt64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…