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

Function _sinhFunc

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

Source from the content-addressed store, hash-verified

6896 }
6897}
6898function _sinhFunc($0,$1,$2) {
6899 $0 = $0|0;
6900 $1 = $1|0;
6901 $2 = $2|0;
6902 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;
6903 sp = STACKTOP;
6904 $3 = ($1|0)==(1);
6905 if (!($3)) {
6906 ___assert_fail((16149|0),(16157|0),438,(16724|0));
6907 // unreachable;
6908 }
6909 $4 = HEAP32[$2>>2]|0;
6910 $5 = (_sqlite3_value_type($4)|0);
6911 $cond = ($5|0)==(5);
6912 if ($cond) {
6913 _sqlite3_result_null($0);
6914 return;
6915 }
6916 $6 = HEAP32[$2>>2]|0;
6917 $7 = (+_sqlite3_value_double($6));
6918 $8 = (___errno_location()|0);
6919 HEAP32[$8>>2] = 0;
6920 $9 = (___errno_location()|0);
6921 $10 = HEAP32[$9>>2]|0;
6922 $11 = ($10|0)==(0);
6923 if ($11) {
6924 $12 = (+_sinh($7));
6925 _sqlite3_result_double($0,$12);
6926 return;
6927 } else {
6928 $13 = (___errno_location()|0);
6929 $14 = HEAP32[$13>>2]|0;
6930 $15 = (_strerror($14)|0);
6931 $16 = (___errno_location()|0);
6932 $17 = HEAP32[$16>>2]|0;
6933 _sqlite3_result_error($0,$15,$17);
6934 return;
6935 }
6936}
6937function _tanhFunc($0,$1,$2) {
6938 $0 = $0|0;
6939 $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
_sinhFunction · 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…