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

Function _atanhFunc

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

Source from the content-addressed store, hash-verified

6074 }
6075}
6076function _atanhFunc($0,$1,$2) {
6077 $0 = $0|0;
6078 $1 = $1|0;
6079 $2 = $2|0;
6080 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;
6081 sp = STACKTOP;
6082 $3 = ($1|0)==(1);
6083 if (!($3)) {
6084 ___assert_fail((16149|0),(16157|0),410,(16245|0));
6085 // unreachable;
6086 }
6087 $4 = HEAP32[$2>>2]|0;
6088 $5 = (_sqlite3_value_type($4)|0);
6089 $cond = ($5|0)==(5);
6090 if ($cond) {
6091 _sqlite3_result_null($0);
6092 return;
6093 }
6094 $6 = HEAP32[$2>>2]|0;
6095 $7 = (+_sqlite3_value_double($6));
6096 $8 = (___errno_location()|0);
6097 HEAP32[$8>>2] = 0;
6098 $9 = (___errno_location()|0);
6099 $10 = HEAP32[$9>>2]|0;
6100 $11 = ($10|0)==(0);
6101 if ($11) {
6102 $12 = (+_atanh($7));
6103 _sqlite3_result_double($0,$12);
6104 return;
6105 } else {
6106 $13 = (___errno_location()|0);
6107 $14 = HEAP32[$13>>2]|0;
6108 $15 = (_strerror($14)|0);
6109 $16 = (___errno_location()|0);
6110 $17 = HEAP32[$16>>2]|0;
6111 _sqlite3_result_error($0,$15,$17);
6112 return;
6113 }
6114}
6115function _differenceFunc($0,$1,$2) {
6116 $0 = $0|0;
6117 $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
_atanhFunction · 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…