MCPcopy
hub / github.com/sql-js/sql.js / _tanFunc

Function _tanFunc

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

Source from the content-addressed store, hash-verified

6778 }
6779}
6780function _tanFunc($0,$1,$2) {
6781 $0 = $0|0;
6782 $1 = $1|0;
6783 $2 = $2|0;
6784 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;
6785 sp = STACKTOP;
6786 $3 = ($1|0)==(1);
6787 if (!($3)) {
6788 ___assert_fail((16149|0),(16157|0),421,(16699|0));
6789 // unreachable;
6790 }
6791 $4 = HEAP32[$2>>2]|0;
6792 $5 = (_sqlite3_value_type($4)|0);
6793 $cond = ($5|0)==(5);
6794 if ($cond) {
6795 _sqlite3_result_null($0);
6796 return;
6797 }
6798 $6 = HEAP32[$2>>2]|0;
6799 $7 = (+_sqlite3_value_double($6));
6800 $8 = (___errno_location()|0);
6801 HEAP32[$8>>2] = 0;
6802 $9 = (___errno_location()|0);
6803 $10 = HEAP32[$9>>2]|0;
6804 $11 = ($10|0)==(0);
6805 if ($11) {
6806 $12 = (+Math_tan((+$7)));
6807 _sqlite3_result_double($0,$12);
6808 return;
6809 } else {
6810 $13 = (___errno_location()|0);
6811 $14 = HEAP32[$13>>2]|0;
6812 $15 = (_strerror($14)|0);
6813 $16 = (___errno_location()|0);
6814 $17 = HEAP32[$16>>2]|0;
6815 _sqlite3_result_error($0,$15,$17);
6816 return;
6817 }
6818}
6819function _cotFunc($0,$1,$2) {
6820 $0 = $0|0;
6821 $1 = $1|0;

Callers

nothing calls this directly

Calls 8

_sqlite3_value_typeFunction · 0.85
_sqlite3_result_nullFunction · 0.85
_sqlite3_value_doubleFunction · 0.85
___errno_locationFunction · 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…