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

Function _sinFunc

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

Source from the content-addressed store, hash-verified

6739 }
6740}
6741function _sinFunc($0,$1,$2) {
6742 $0 = $0|0;
6743 $1 = $1|0;
6744 $2 = $2|0;
6745 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;
6746 sp = STACKTOP;
6747 $3 = ($1|0)==(1);
6748 if (!($3)) {
6749 ___assert_fail((16149|0),(16157|0),419,(16691|0));
6750 // unreachable;
6751 }
6752 $4 = HEAP32[$2>>2]|0;
6753 $5 = (_sqlite3_value_type($4)|0);
6754 $cond = ($5|0)==(5);
6755 if ($cond) {
6756 _sqlite3_result_null($0);
6757 return;
6758 }
6759 $6 = HEAP32[$2>>2]|0;
6760 $7 = (+_sqlite3_value_double($6));
6761 $8 = (___errno_location()|0);
6762 HEAP32[$8>>2] = 0;
6763 $9 = (___errno_location()|0);
6764 $10 = HEAP32[$9>>2]|0;
6765 $11 = ($10|0)==(0);
6766 if ($11) {
6767 $12 = (+Math_sin((+$7)));
6768 _sqlite3_result_double($0,$12);
6769 return;
6770 } else {
6771 $13 = (___errno_location()|0);
6772 $14 = HEAP32[$13>>2]|0;
6773 $15 = (_strerror($14)|0);
6774 $16 = (___errno_location()|0);
6775 $17 = HEAP32[$16>>2]|0;
6776 _sqlite3_result_error($0,$15,$17);
6777 return;
6778 }
6779}
6780function _tanFunc($0,$1,$2) {
6781 $0 = $0|0;
6782 $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…