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

Function _tanhFunc

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

Source from the content-addressed store, hash-verified

6935 }
6936}
6937function _tanhFunc($0,$1,$2) {
6938 $0 = $0|0;
6939 $1 = $1|0;
6940 $2 = $2|0;
6941 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;
6942 sp = STACKTOP;
6943 $3 = ($1|0)==(1);
6944 if (!($3)) {
6945 ___assert_fail((16149|0),(16157|0),454,(16733|0));
6946 // unreachable;
6947 }
6948 $4 = HEAP32[$2>>2]|0;
6949 $5 = (_sqlite3_value_type($4)|0);
6950 $cond = ($5|0)==(5);
6951 if ($cond) {
6952 _sqlite3_result_null($0);
6953 return;
6954 }
6955 $6 = HEAP32[$2>>2]|0;
6956 $7 = (+_sqlite3_value_double($6));
6957 $8 = (___errno_location()|0);
6958 HEAP32[$8>>2] = 0;
6959 $9 = (___errno_location()|0);
6960 $10 = HEAP32[$9>>2]|0;
6961 $11 = ($10|0)==(0);
6962 if ($11) {
6963 $12 = (+_tanh($7));
6964 _sqlite3_result_double($0,$12);
6965 return;
6966 } else {
6967 $13 = (___errno_location()|0);
6968 $14 = HEAP32[$13>>2]|0;
6969 $15 = (_strerror($14)|0);
6970 $16 = (___errno_location()|0);
6971 $17 = HEAP32[$16>>2]|0;
6972 _sqlite3_result_error($0,$15,$17);
6973 return;
6974 }
6975}
6976function _cothFunc($0,$1,$2) {
6977 $0 = $0|0;
6978 $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
_tanhFunction · 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…