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

Function _expFunc

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

Source from the content-addressed store, hash-verified

7014 }
7015}
7016function _expFunc($0,$1,$2) {
7017 $0 = $0|0;
7018 $1 = $1|0;
7019 $2 = $2|0;
7020 var $10 = 0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0, $cond = 0, label = 0, sp = 0;
7021 sp = STACKTOP;
7022 $3 = ($1|0)==(1);
7023 if (!($3)) {
7024 ___assert_fail((16149|0),(16157|0),474,(16751|0));
7025 // unreachable;
7026 }
7027 $4 = HEAP32[$2>>2]|0;
7028 $5 = (_sqlite3_value_type($4)|0);
7029 $cond = ($5|0)==(5);
7030 if ($cond) {
7031 _sqlite3_result_null($0);
7032 return;
7033 }
7034 $6 = HEAP32[$2>>2]|0;
7035 $7 = (+_sqlite3_value_double($6));
7036 $8 = (___errno_location()|0);
7037 HEAP32[$8>>2] = 0;
7038 $9 = (___errno_location()|0);
7039 $10 = HEAP32[$9>>2]|0;
7040 $11 = ($10|0)==(0);
7041 if ($11) {
7042 $12 = (+Math_exp((+$7)));
7043 _sqlite3_result_double($0,$12);
7044 return;
7045 } else {
7046 $13 = (___errno_location()|0);
7047 $14 = HEAP32[$13>>2]|0;
7048 $15 = (_strerror($14)|0);
7049 $16 = (___errno_location()|0);
7050 $17 = HEAP32[$16>>2]|0;
7051 _sqlite3_result_error($0,$15,$17);
7052 return;
7053 }
7054}
7055function _logFunc($0,$1,$2) {
7056 $0 = $0|0;
7057 $1 = $1|0;

Callers

nothing calls this directly

Calls 8

_sqlite3_value_typeFunction · 0.85
_sqlite3_result_nullFunction · 0.85
_sqlite3_value_doubleFunction · 0.85
___errno_locationFunction · 0.85
_sqlite3_result_doubleFunction · 0.85
_strerrorFunction · 0.85
_sqlite3_result_errorFunction · 0.85
___assert_failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…