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

Function ___remdi3

js/sql-debug.js:397671–397692  ·  view source on GitHub ↗
($a$0, $a$1, $b$0, $b$1)

Source from the content-addressed store, hash-verified

397669 return (tempRet0 = ((Math_imul($b$1, $x_sroa_0_0_extract_trunc) | 0) + $2 | 0) + $1$1 | $1$1 & 0, 0 | $1$0 & -1) | 0;
397670}
397671function ___remdi3($a$0, $a$1, $b$0, $b$1) {
397672 $a$0 = $a$0 | 0;
397673 $a$1 = $a$1 | 0;
397674 $b$0 = $b$0 | 0;
397675 $b$1 = $b$1 | 0;
397676 var $rem = 0, $1$0 = 0, $1$1 = 0, $2$0 = 0, $2$1 = 0, $4$0 = 0, $4$1 = 0, $6$0 = 0, $10$0 = 0, $10$1 = 0, __stackBase__ = 0;
397677 __stackBase__ = STACKTOP;
397678 STACKTOP = STACKTOP + 16 | 0;
397679 $rem = __stackBase__ | 0;
397680 $1$0 = $a$1 >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1;
397681 $1$1 = (($a$1 | 0) < 0 ? -1 : 0) >> 31 | (($a$1 | 0) < 0 ? -1 : 0) << 1;
397682 $2$0 = $b$1 >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1;
397683 $2$1 = (($b$1 | 0) < 0 ? -1 : 0) >> 31 | (($b$1 | 0) < 0 ? -1 : 0) << 1;
397684 $4$0 = _i64Subtract($1$0 ^ $a$0 | 0, $1$1 ^ $a$1 | 0, $1$0 | 0, $1$1 | 0) | 0;
397685 $4$1 = tempRet0;
397686 $6$0 = _i64Subtract($2$0 ^ $b$0 | 0, $2$1 ^ $b$1 | 0, $2$0 | 0, $2$1 | 0) | 0;
397687 ___udivmoddi4($4$0, $4$1, $6$0, tempRet0, $rem) | 0;
397688 $10$0 = _i64Subtract(HEAP32[$rem >> 2] ^ $1$0 | 0, HEAP32[$rem + 4 >> 2] ^ $1$1 | 0, $1$0 | 0, $1$1 | 0) | 0;
397689 $10$1 = tempRet0;
397690 STACKTOP = __stackBase__;
397691 return (tempRet0 = $10$1, $10$0) | 0;
397692}
397693function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
397694 $a$0 = $a$0 | 0;
397695 $a$1 = $a$1 | 0;

Callers 15

_unixTruncateFunction · 0.85
_unixFileControlFunction · 0.85
_sqlite3AtoFFunction · 0.85
_timeFuncFunction · 0.85
_datetimeFuncFunction · 0.85
_strftimeFuncFunction · 0.85
_isDateFunction · 0.85
_localtimeOffsetFunction · 0.85
_memjrnlReadFunction · 0.85
_memjrnlWriteFunction · 0.85
_backupOnePageFunction · 0.85
_pagerWalFramesFunction · 0.85

Calls 2

_i64SubtractFunction · 0.85
___udivmoddi4Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…