MCPcopy Index your code
hub / github.com/sql-js/sql.js / _asinFunc

Function _asinFunc

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

Source from the content-addressed store, hash-verified

5886 }
5887}
5888function _asinFunc($0,$1,$2) {
5889 $0 = $0|0;
5890 $1 = $1|0;
5891 $2 = $2|0;
5892 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;
5893 sp = STACKTOP;
5894 $3 = ($1|0)==(1);
5895 if (!($3)) {
5896 ___assert_fail((16149|0),(16157|0),379,(16190|0));
5897 // unreachable;
5898 }
5899 $4 = HEAP32[$2>>2]|0;
5900 $5 = (_sqlite3_value_type($4)|0);
5901 $cond = ($5|0)==(5);
5902 if ($cond) {
5903 _sqlite3_result_null($0);
5904 return;
5905 }
5906 $6 = HEAP32[$2>>2]|0;
5907 $7 = (+_sqlite3_value_double($6));
5908 $8 = (___errno_location()|0);
5909 HEAP32[$8>>2] = 0;
5910 $9 = (___errno_location()|0);
5911 $10 = HEAP32[$9>>2]|0;
5912 $11 = ($10|0)==(0);
5913 if ($11) {
5914 $12 = (+Math_asin((+$7)));
5915 _sqlite3_result_double($0,$12);
5916 return;
5917 } else {
5918 $13 = (___errno_location()|0);
5919 $14 = HEAP32[$13>>2]|0;
5920 $15 = (_strerror($14)|0);
5921 $16 = (___errno_location()|0);
5922 $17 = HEAP32[$16>>2]|0;
5923 _sqlite3_result_error($0,$15,$17);
5924 return;
5925 }
5926}
5927function _atanFunc($0,$1,$2) {
5928 $0 = $0|0;
5929 $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…