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

Function _strcmp

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

Source from the content-addressed store, hash-verified

395621 return ($$|0);
395622}
395623function _strcmp($0,$1) {
395624 $0 = $0|0;
395625 $1 = $1|0;
395626 var $$011 = 0, $$0710 = 0, $$lcssa = 0, $$lcssa8 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond9 = 0, label = 0;
395627 var sp = 0;
395628 sp = STACKTOP;
395629 $2 = HEAP8[$0>>0]|0;
395630 $3 = HEAP8[$1>>0]|0;
395631 $4 = ($2<<24>>24)!=($3<<24>>24);
395632 $5 = ($2<<24>>24)==(0);
395633 $or$cond9 = $5 | $4;
395634 if ($or$cond9) {
395635 $$lcssa = $3;$$lcssa8 = $2;
395636 } else {
395637 $$011 = $1;$$0710 = $0;
395638 while(1) {
395639 $6 = ((($$0710)) + 1|0);
395640 $7 = ((($$011)) + 1|0);
395641 $8 = HEAP8[$6>>0]|0;
395642 $9 = HEAP8[$7>>0]|0;
395643 $10 = ($8<<24>>24)!=($9<<24>>24);
395644 $11 = ($8<<24>>24)==(0);
395645 $or$cond = $11 | $10;
395646 if ($or$cond) {
395647 $$lcssa = $9;$$lcssa8 = $8;
395648 break;
395649 } else {
395650 $$011 = $7;$$0710 = $6;
395651 }
395652 }
395653 }
395654 $12 = $$lcssa8&255;
395655 $13 = $$lcssa&255;
395656 $14 = (($12) - ($13))|0;
395657 return ($14|0);
395658}
395659function _strncmp($0,$1,$2) {
395660 $0 = $0|0;
395661 $1 = $1|0;

Callers 15

_unixOpenFunction · 0.85
_unixSetSystemCallFunction · 0.85
_unixGetSystemCallFunction · 0.85
_unixNextSystemCallFunction · 0.85
_sqlite3_uri_booleanFunction · 0.85
_sqlite3BtreeOpenFunction · 0.85
_pager_playbackFunction · 0.85
_sqlite3_stepFunction · 0.85
_sqlite3StartTableFunction · 0.85
_sqlite3InsertFunction · 0.85
_sqlite3ExprCompareFunction · 0.85
_sqlite3ParseUriFunction · 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…