MCPcopy Create free account
hub / github.com/sql-js/sql.js / _fts3CompareElemByTerm

Function _fts3CompareElemByTerm

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

Source from the content-addressed store, hash-verified

345541 STACKTOP = sp;return ($$040|0);
345542}
345543function _fts3CompareElemByTerm($0,$1) {
345544 $0 = $0|0;
345545 $1 = $1|0;
345546 var $$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
345547 sp = STACKTOP;
345548 $2 = HEAP32[$0>>2]|0;
345549 $3 = ((($2)) + 12|0);
345550 $4 = HEAP32[$3>>2]|0;
345551 $5 = HEAP32[$1>>2]|0;
345552 $6 = ((($5)) + 12|0);
345553 $7 = HEAP32[$6>>2]|0;
345554 $8 = ((($2)) + 16|0);
345555 $9 = HEAP32[$8>>2]|0;
345556 $10 = ((($5)) + 16|0);
345557 $11 = HEAP32[$10>>2]|0;
345558 $12 = ($9|0)<($11|0);
345559 $13 = $12 ? $9 : $11;
345560 $14 = (_memcmp($4,$7,$13)|0);
345561 $15 = ($14|0)==(0);
345562 $16 = (($9) - ($11))|0;
345563 $$ = $15 ? $16 : $14;
345564 return ($$|0);
345565}
345566function _fts3SegReaderCursorAppend($0,$1) {
345567 $0 = $0|0;
345568 $1 = $1|0;

Callers

nothing calls this directly

Calls 1

_memcmpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…