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

Function _rad2degFunc

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

Source from the content-addressed store, hash-verified

6620 STACKTOP = sp;return;
6621}
6622function _rad2degFunc($0,$1,$2) {
6623 $0 = $0|0;
6624 $1 = $1|0;
6625 $2 = $2|0;
6626 var $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0, $cond = 0, label = 0, sp = 0;
6627 sp = STACKTOP;
6628 $3 = ($1|0)==(1);
6629 if (!($3)) {
6630 ___assert_fail((16149|0),(16157|0),498,(16659|0));
6631 // unreachable;
6632 }
6633 $4 = HEAP32[$2>>2]|0;
6634 $5 = (_sqlite3_value_type($4)|0);
6635 $cond = ($5|0)==(5);
6636 if ($cond) {
6637 _sqlite3_result_null($0);
6638 return;
6639 }
6640 $6 = HEAP32[$2>>2]|0;
6641 $7 = (+_sqlite3_value_double($6));
6642 $8 = (___errno_location()|0);
6643 HEAP32[$8>>2] = 0;
6644 $9 = (___errno_location()|0);
6645 $10 = HEAP32[$9>>2]|0;
6646 $11 = ($10|0)==(0);
6647 if ($11) {
6648 $12 = $7 * 180.0;
6649 $13 = $12 / 3.1415926535897931;
6650 _sqlite3_result_double($0,$13);
6651 return;
6652 } else {
6653 $14 = (___errno_location()|0);
6654 $15 = HEAP32[$14>>2]|0;
6655 $16 = (_strerror($15)|0);
6656 $17 = (___errno_location()|0);
6657 $18 = HEAP32[$17>>2]|0;
6658 _sqlite3_result_error($0,$16,$18);
6659 return;
6660 }
6661}
6662function _deg2radFunc($0,$1,$2) {
6663 $0 = $0|0;
6664 $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…