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

Function _atanFunc

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

Source from the content-addressed store, hash-verified

5925 }
5926}
5927function _atanFunc($0,$1,$2) {
5928 $0 = $0|0;
5929 $1 = $1|0;
5930 $2 = $2|0;
5931 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;
5932 sp = STACKTOP;
5933 $3 = ($1|0)==(1);
5934 if (!($3)) {
5935 ___assert_fail((16149|0),(16157|0),380,(16199|0));
5936 // unreachable;
5937 }
5938 $4 = HEAP32[$2>>2]|0;
5939 $5 = (_sqlite3_value_type($4)|0);
5940 $cond = ($5|0)==(5);
5941 if ($cond) {
5942 _sqlite3_result_null($0);
5943 return;
5944 }
5945 $6 = HEAP32[$2>>2]|0;
5946 $7 = (+_sqlite3_value_double($6));
5947 $8 = (___errno_location()|0);
5948 HEAP32[$8>>2] = 0;
5949 $9 = (___errno_location()|0);
5950 $10 = HEAP32[$9>>2]|0;
5951 $11 = ($10|0)==(0);
5952 if ($11) {
5953 $12 = (+Math_atan((+$7)));
5954 _sqlite3_result_double($0,$12);
5955 return;
5956 } else {
5957 $13 = (___errno_location()|0);
5958 $14 = HEAP32[$13>>2]|0;
5959 $15 = (_strerror($14)|0);
5960 $16 = (___errno_location()|0);
5961 $17 = HEAP32[$16>>2]|0;
5962 _sqlite3_result_error($0,$15,$17);
5963 return;
5964 }
5965}
5966function _atn2Func($0,$1,$2) {
5967 $0 = $0|0;
5968 $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…