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

Function _asinhFunc

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

Source from the content-addressed store, hash-verified

6035 }
6036}
6037function _asinhFunc($0,$1,$2) {
6038 $0 = $0|0;
6039 $1 = $1|0;
6040 $2 = $2|0;
6041 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;
6042 sp = STACKTOP;
6043 $3 = ($1|0)==(1);
6044 if (!($3)) {
6045 ___assert_fail((16149|0),(16157|0),402,(16235|0));
6046 // unreachable;
6047 }
6048 $4 = HEAP32[$2>>2]|0;
6049 $5 = (_sqlite3_value_type($4)|0);
6050 $cond = ($5|0)==(5);
6051 if ($cond) {
6052 _sqlite3_result_null($0);
6053 return;
6054 }
6055 $6 = HEAP32[$2>>2]|0;
6056 $7 = (+_sqlite3_value_double($6));
6057 $8 = (___errno_location()|0);
6058 HEAP32[$8>>2] = 0;
6059 $9 = (___errno_location()|0);
6060 $10 = HEAP32[$9>>2]|0;
6061 $11 = ($10|0)==(0);
6062 if ($11) {
6063 $12 = (+_asinh($7));
6064 _sqlite3_result_double($0,$12);
6065 return;
6066 } else {
6067 $13 = (___errno_location()|0);
6068 $14 = HEAP32[$13>>2]|0;
6069 $15 = (_strerror($14)|0);
6070 $16 = (___errno_location()|0);
6071 $17 = HEAP32[$16>>2]|0;
6072 _sqlite3_result_error($0,$15,$17);
6073 return;
6074 }
6075}
6076function _atanhFunc($0,$1,$2) {
6077 $0 = $0|0;
6078 $1 = $1|0;

Callers

nothing calls this directly

Calls 9

_sqlite3_value_typeFunction · 0.85
_sqlite3_result_nullFunction · 0.85
_sqlite3_value_doubleFunction · 0.85
___errno_locationFunction · 0.85
_asinhFunction · 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…