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

Function _coshFunc

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

Source from the content-addressed store, hash-verified

6857 }
6858}
6859function _coshFunc($0,$1,$2) {
6860 $0 = $0|0;
6861 $1 = $1|0;
6862 $2 = $2|0;
6863 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;
6864 sp = STACKTOP;
6865 $3 = ($1|0)==(1);
6866 if (!($3)) {
6867 ___assert_fail((16149|0),(16157|0),446,(16715|0));
6868 // unreachable;
6869 }
6870 $4 = HEAP32[$2>>2]|0;
6871 $5 = (_sqlite3_value_type($4)|0);
6872 $cond = ($5|0)==(5);
6873 if ($cond) {
6874 _sqlite3_result_null($0);
6875 return;
6876 }
6877 $6 = HEAP32[$2>>2]|0;
6878 $7 = (+_sqlite3_value_double($6));
6879 $8 = (___errno_location()|0);
6880 HEAP32[$8>>2] = 0;
6881 $9 = (___errno_location()|0);
6882 $10 = HEAP32[$9>>2]|0;
6883 $11 = ($10|0)==(0);
6884 if ($11) {
6885 $12 = (+_cosh($7));
6886 _sqlite3_result_double($0,$12);
6887 return;
6888 } else {
6889 $13 = (___errno_location()|0);
6890 $14 = HEAP32[$13>>2]|0;
6891 $15 = (_strerror($14)|0);
6892 $16 = (___errno_location()|0);
6893 $17 = HEAP32[$16>>2]|0;
6894 _sqlite3_result_error($0,$15,$17);
6895 return;
6896 }
6897}
6898function _sinhFunc($0,$1,$2) {
6899 $0 = $0|0;
6900 $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
_coshFunction · 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…