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

Function _unixCurrentTimeInt64

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

Source from the content-addressed store, hash-verified

16679 return ($4|0);
16680}
16681function _unixCurrentTimeInt64($0,$1) {
16682 $0 = $0|0;
16683 $1 = $1|0;
16684 var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
16685 var sp = 0;
16686 sp = STACKTOP;
16687 STACKTOP = STACKTOP + 16|0;
16688 $2 = sp;
16689 (_gettimeofday(($2|0),(0|0))|0);
16690 $3 = HEAP32[$2>>2]|0;
16691 $4 = ($3|0)<(0);
16692 $5 = $4 << 31 >> 31;
16693 $6 = (___muldi3(($3|0),($5|0),1000,0)|0);
16694 $7 = tempRet0;
16695 $8 = (_i64Add(($6|0),($7|0),1045635584,49096)|0);
16696 $9 = tempRet0;
16697 $10 = ((($2)) + 4|0);
16698 $11 = HEAP32[$10>>2]|0;
16699 $12 = (($11|0) / 1000)&-1;
16700 $13 = ($12|0)<(0);
16701 $14 = $13 << 31 >> 31;
16702 $15 = (_i64Add(($8|0),($9|0),($12|0),($14|0))|0);
16703 $16 = tempRet0;
16704 $17 = $1;
16705 $18 = $17;
16706 HEAP32[$18>>2] = $15;
16707 $19 = (($17) + 4)|0;
16708 $20 = $19;
16709 HEAP32[$20>>2] = $16;
16710 STACKTOP = sp;return 0;
16711}
16712function _unixSetSystemCall($0,$1,$2) {
16713 $0 = $0|0;
16714 $1 = $1|0;

Callers

nothing calls this directly

Calls 3

___muldi3Function · 0.85
_i64AddFunction · 0.85
_gettimeofdayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…