MCPcopy Index your code
hub / github.com/sql-js/sql.js / _acoshFunc

Function _acoshFunc

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

Source from the content-addressed store, hash-verified

5996 return;
5997}
5998function _acoshFunc($0,$1,$2) {
5999 $0 = $0|0;
6000 $1 = $1|0;
6001 $2 = $2|0;
6002 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;
6003 sp = STACKTOP;
6004 $3 = ($1|0)==(1);
6005 if (!($3)) {
6006 ___assert_fail((16149|0),(16157|0),394,(16225|0));
6007 // unreachable;
6008 }
6009 $4 = HEAP32[$2>>2]|0;
6010 $5 = (_sqlite3_value_type($4)|0);
6011 $cond = ($5|0)==(5);
6012 if ($cond) {
6013 _sqlite3_result_null($0);
6014 return;
6015 }
6016 $6 = HEAP32[$2>>2]|0;
6017 $7 = (+_sqlite3_value_double($6));
6018 $8 = (___errno_location()|0);
6019 HEAP32[$8>>2] = 0;
6020 $9 = (___errno_location()|0);
6021 $10 = HEAP32[$9>>2]|0;
6022 $11 = ($10|0)==(0);
6023 if ($11) {
6024 $12 = (+_acosh($7));
6025 _sqlite3_result_double($0,$12);
6026 return;
6027 } else {
6028 $13 = (___errno_location()|0);
6029 $14 = HEAP32[$13>>2]|0;
6030 $15 = (_strerror($14)|0);
6031 $16 = (___errno_location()|0);
6032 $17 = HEAP32[$16>>2]|0;
6033 _sqlite3_result_error($0,$15,$17);
6034 return;
6035 }
6036}
6037function _asinhFunc($0,$1,$2) {
6038 $0 = $0|0;
6039 $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
_acoshFunction · 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…