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

Function _fts3BinHash

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

Source from the content-addressed store, hash-verified

329413 return ($$0$lcssa|0);
329414}
329415function _fts3BinHash($0,$1) {
329416 $0 = $0|0;
329417 $1 = $1|0;
329418 var $$011 = 0, $$07$lcssa = 0, $$0710 = 0, $$089 = 0, $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
329419 sp = STACKTOP;
329420 $2 = ($1|0)>(0);
329421 if ($2) {
329422 $$011 = $0;$$0710 = 0;$$089 = $1;
329423 } else {
329424 $$07$lcssa = 0;
329425 return ($$07$lcssa|0);
329426 }
329427 while(1) {
329428 $3 = (($$089) + -1)|0;
329429 $4 = $$0710 << 3;
329430 $5 = $4 ^ $$0710;
329431 $6 = ((($$011)) + 1|0);
329432 $7 = HEAP8[$$011>>0]|0;
329433 $8 = $7 << 24 >> 24;
329434 $9 = $5 ^ $8;
329435 $10 = ($$089|0)>(1);
329436 if ($10) {
329437 $$011 = $6;$$0710 = $9;$$089 = $3;
329438 } else {
329439 break;
329440 }
329441 }
329442 $phitmp = $9 & 2147483647;
329443 $$07$lcssa = $phitmp;
329444 return ($$07$lcssa|0);
329445}
329446function _fts3StrCompare($0,$1,$2,$3) {
329447 $0 = $0|0;
329448 $1 = $1|0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…