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

Function _unixCurrentTime

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

Source from the content-addressed store, hash-verified

16642 return ($4|0);
16643}
16644function _unixCurrentTime($0,$1) {
16645 $0 = $0|0;
16646 $1 = $1|0;
16647 var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
16648 sp = STACKTOP;
16649 STACKTOP = STACKTOP + 16|0;
16650 $2 = sp;
16651 (_gettimeofday(($2|0),(0|0))|0);
16652 $3 = HEAP32[$2>>2]|0;
16653 $4 = ($3|0)<(0);
16654 $5 = $4 << 31 >> 31;
16655 $6 = (___muldi3(($3|0),($5|0),1000,0)|0);
16656 $7 = tempRet0;
16657 $8 = (_i64Add(($6|0),($7|0),1045635584,49096)|0);
16658 $9 = tempRet0;
16659 $10 = ((($2)) + 4|0);
16660 $11 = HEAP32[$10>>2]|0;
16661 $12 = (($11|0) / 1000)&-1;
16662 $13 = ($12|0)<(0);
16663 $14 = $13 << 31 >> 31;
16664 $15 = (_i64Add(($8|0),($9|0),($12|0),($14|0))|0);
16665 $16 = tempRet0;
16666 $17 = (+($15>>>0)) + (4294967296.0*(+($16|0)));
16667 $18 = $17 / 8.64E+7;
16668 HEAPF64[$1>>3] = $18;
16669 STACKTOP = sp;return 0;
16670}
16671function _unixGetLastError($0,$1,$2) {
16672 $0 = $0|0;
16673 $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…