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

Function _memcmp

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

Source from the content-addressed store, hash-verified

395238 return ($22|0);
395239}
395240function _memcmp($0,$1,$2) {
395241 $0 = $0|0;
395242 $1 = $1|0;
395243 $2 = $2|0;
395244 var $$01318 = 0, $$01417 = 0, $$019 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
395245 sp = STACKTOP;
395246 $3 = ($2|0)==(0);
395247 L1: do {
395248 if ($3) {
395249 $14 = 0;
395250 } else {
395251 $$01318 = $0;$$01417 = $2;$$019 = $1;
395252 while(1) {
395253 $4 = HEAP8[$$01318>>0]|0;
395254 $5 = HEAP8[$$019>>0]|0;
395255 $6 = ($4<<24>>24)==($5<<24>>24);
395256 if (!($6)) {
395257 break;
395258 }
395259 $7 = (($$01417) + -1)|0;
395260 $8 = ((($$01318)) + 1|0);
395261 $9 = ((($$019)) + 1|0);
395262 $10 = ($7|0)==(0);
395263 if ($10) {
395264 $14 = 0;
395265 break L1;
395266 } else {
395267 $$01318 = $8;$$01417 = $7;$$019 = $9;
395268 }
395269 }
395270 $11 = $4&255;
395271 $12 = $5&255;
395272 $13 = (($11) - ($12))|0;
395273 $14 = $13;
395274 }
395275 } while(0);
395276 return ($14|0);
395277}
395278function _strcpy($0,$1) {
395279 $0 = $0|0;
395280 $1 = $1|0;

Callers 15

_unixOpenFunction · 0.85
_trimFuncFunction · 0.85
_instrFuncFunction · 0.85
_replaceFuncFunction · 0.85
_sqlite3BlobCompareFunction · 0.85
_readMasterJournalFunction · 0.85
_readJournalHdrFunction · 0.85
_walIndexTryHdrFunction · 0.85
_walDecodeFrameFunction · 0.85
_pagerWalFramesFunction · 0.85
_syncJournalFunction · 0.85
_walTryBeginReadFunction · 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…