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

Function _deg2radFunc

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

Source from the content-addressed store, hash-verified

6660 }
6661}
6662function _deg2radFunc($0,$1,$2) {
6663 $0 = $0|0;
6664 $1 = $1|0;
6665 $2 = $2|0;
6666 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;
6667 sp = STACKTOP;
6668 $3 = ($1|0)==(1);
6669 if (!($3)) {
6670 ___assert_fail((16149|0),(16157|0),499,(16671|0));
6671 // unreachable;
6672 }
6673 $4 = HEAP32[$2>>2]|0;
6674 $5 = (_sqlite3_value_type($4)|0);
6675 $cond = ($5|0)==(5);
6676 if ($cond) {
6677 _sqlite3_result_null($0);
6678 return;
6679 }
6680 $6 = HEAP32[$2>>2]|0;
6681 $7 = (+_sqlite3_value_double($6));
6682 $8 = (___errno_location()|0);
6683 HEAP32[$8>>2] = 0;
6684 $9 = (___errno_location()|0);
6685 $10 = HEAP32[$9>>2]|0;
6686 $11 = ($10|0)==(0);
6687 if ($11) {
6688 $12 = $7 * 3.1415926535897931;
6689 $13 = $12 / 180.0;
6690 _sqlite3_result_double($0,$13);
6691 return;
6692 } else {
6693 $14 = (___errno_location()|0);
6694 $15 = HEAP32[$14>>2]|0;
6695 $16 = (_strerror($15)|0);
6696 $17 = (___errno_location()|0);
6697 $18 = HEAP32[$17>>2]|0;
6698 _sqlite3_result_error($0,$16,$18);
6699 return;
6700 }
6701}
6702function _cosFunc($0,$1,$2) {
6703 $0 = $0|0;
6704 $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…