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

Function _acosFunc

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

Source from the content-addressed store, hash-verified

5847 return 0;
5848}
5849function _acosFunc($0,$1,$2) {
5850 $0 = $0|0;
5851 $1 = $1|0;
5852 $2 = $2|0;
5853 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;
5854 sp = STACKTOP;
5855 $3 = ($1|0)==(1);
5856 if (!($3)) {
5857 ___assert_fail((16149|0),(16157|0),378,(16181|0));
5858 // unreachable;
5859 }
5860 $4 = HEAP32[$2>>2]|0;
5861 $5 = (_sqlite3_value_type($4)|0);
5862 $cond = ($5|0)==(5);
5863 if ($cond) {
5864 _sqlite3_result_null($0);
5865 return;
5866 }
5867 $6 = HEAP32[$2>>2]|0;
5868 $7 = (+_sqlite3_value_double($6));
5869 $8 = (___errno_location()|0);
5870 HEAP32[$8>>2] = 0;
5871 $9 = (___errno_location()|0);
5872 $10 = HEAP32[$9>>2]|0;
5873 $11 = ($10|0)==(0);
5874 if ($11) {
5875 $12 = (+Math_acos((+$7)));
5876 _sqlite3_result_double($0,$12);
5877 return;
5878 } else {
5879 $13 = (___errno_location()|0);
5880 $14 = HEAP32[$13>>2]|0;
5881 $15 = (_strerror($14)|0);
5882 $16 = (___errno_location()|0);
5883 $17 = HEAP32[$16>>2]|0;
5884 _sqlite3_result_error($0,$15,$17);
5885 return;
5886 }
5887}
5888function _asinFunc($0,$1,$2) {
5889 $0 = $0|0;
5890 $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…