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

Function _doubleToInt64

js/sql-debug.js:13153–13172  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

13151 return;
13152}
13153function _doubleToInt64($0) {
13154 $0 = +$0;
13155 var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
13156 sp = STACKTOP;
13157 $1 = !($0 <= -9.2233720368547758E+18);
13158 if ($1) {
13159 $2 = !($0 >= 9.2233720368547758E+18);
13160 if ($2) {
13161 $3 = (~~$0)>>>0;
13162 $4 = +Math_abs($0) >= 1.0 ? $0 > 0.0 ? (~~+Math_min(+Math_floor($0 / 4294967296.0), 4294967295.0)) >>> 0 : ~~+Math_ceil(($0 - +(~~$0 >>> 0)) / 4294967296.0) >>> 0 : 0;
13163 $5 = $4;$6 = $3;
13164 } else {
13165 $5 = 2147483647;$6 = -1;
13166 }
13167 } else {
13168 $5 = -2147483648;$6 = 0;
13169 }
13170 tempRet0 = ($5);
13171 return ($6|0);
13172}
13173function _memIntValue($$0$2$val,$$0$4$val,$$0$5$val) {
13174 $$0$2$val = $$0$2$val|0;
13175 $$0$4$val = $$0$4$val|0;

Callers 15

_sqlite3VXPrintfFunction · 0.85
_compileoptiongetFuncFunction · 0.85
_charFuncFunction · 0.85
_absFuncFunction · 0.85
_roundFuncFunction · 0.85
_randomBlobFunction · 0.85
_errlogFuncFunction · 0.85
_zeroblobFuncFunction · 0.85
_substrFuncFunction · 0.85
_sumStepFunction · 0.85
_sqlite3_value_intFunction · 0.85
_sqlite3_value_int64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…