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

Function _log10

js/sql-debug.js:394703–394812  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

394701 return ($1|0);
394702}
394703function _log10($0) {
394704 $0 = +$0;
394705 var $$0 = 0, $$0100 = 0, $$0101 = 0.0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
394706 var $25 = 0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0.0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0;
394707 var $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 0, $5 = 0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0.0;
394708 var $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0.0, $71 = 0, $8 = 0, $9 = 0.0, $or$cond = 0, $or$cond105 = 0, label = 0, sp = 0;
394709 sp = STACKTOP;
394710 HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
394711 $2 = HEAP32[tempDoublePtr+4>>2]|0;
394712 $3 = ($2>>>0)<(1048576);
394713 $4 = ($2|0)<(0);
394714 $or$cond = $4 | $3;
394715 do {
394716 if ($or$cond) {
394717 $5 = $2 & 2147483647;
394718 $6 = ($1|0)==(0);
394719 $7 = ($5|0)==(0);
394720 $8 = $6 & $7;
394721 if ($8) {
394722 $9 = $0 * $0;
394723 $10 = -1.0 / $9;
394724 $$0101 = $10;
394725 break;
394726 }
394727 if ($4) {
394728 $11 = $0 - $0;
394729 $12 = $11 / 0.0;
394730 $$0101 = $12;
394731 break;
394732 } else {
394733 $13 = $0 * 18014398509481984.0;
394734 HEAPF64[tempDoublePtr>>3] = $13;$14 = HEAP32[tempDoublePtr>>2]|0;
394735 $15 = HEAP32[tempDoublePtr+4>>2]|0;
394736 $$0 = -1077;$$0100 = $15;$27 = $14;$71 = $15;
394737 label = 9;
394738 break;
394739 }
394740 } else {
394741 $16 = ($2>>>0)>(2146435071);
394742 if ($16) {
394743 $$0101 = $0;
394744 } else {
394745 $17 = ($2|0)==(1072693248);
394746 $18 = ($1|0)==(0);
394747 $19 = (0)==(0);
394748 $20 = $18 & $19;
394749 $or$cond105 = $20 & $17;
394750 if ($or$cond105) {
394751 $$0101 = 0.0;
394752 } else {
394753 $$0 = -1023;$$0100 = $2;$27 = $1;$71 = $2;
394754 label = 9;
394755 }
394756 }
394757 }
394758 } while(0);
394759 if ((label|0) == 9) {
394760 $21 = (($$0100) + 614242)|0;

Callers 1

_log10FuncFunction · 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…