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

Function _asinh

js/sql-debug.js:395058–395109  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

395056 return (+$22);
395057}
395058function _asinh($0) {
395059 $0 = +$0;
395060 var $$0 = 0.0, $1 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $2 = 0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0;
395061 var $27 = 0.0, $28 = 0, $29 = 0.0, $3 = 0, $30 = 0.0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
395062 sp = STACKTOP;
395063 HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
395064 $2 = HEAP32[tempDoublePtr+4>>2]|0;
395065 $3 = (_bitshift64Lshr(($1|0),($2|0),52)|0);
395066 $4 = tempRet0;
395067 $5 = $3 & 2047;
395068 $6 = $2 & 2147483647;
395069 HEAP32[tempDoublePtr>>2] = $1;HEAP32[tempDoublePtr+4>>2] = $6;$7 = +HEAPF64[tempDoublePtr>>3];
395070 $8 = ($5>>>0)>(1048);
395071 do {
395072 if ($8) {
395073 $9 = (+Math_log((+$7)));
395074 $10 = $9 + 0.69314718055994529;
395075 $$0 = $10;
395076 } else {
395077 $11 = ($5>>>0)>(1023);
395078 if ($11) {
395079 $12 = $7 * 2.0;
395080 $13 = $7 * $7;
395081 $14 = $13 + 1.0;
395082 $15 = (+Math_sqrt((+$14)));
395083 $16 = $7 + $15;
395084 $17 = 1.0 / $16;
395085 $18 = $12 + $17;
395086 $19 = (+Math_log((+$18)));
395087 $$0 = $19;
395088 break;
395089 }
395090 $20 = ($5>>>0)>(996);
395091 if ($20) {
395092 $21 = $7 * $7;
395093 $22 = $21 + 1.0;
395094 $23 = (+Math_sqrt((+$22)));
395095 $24 = $23 + 1.0;
395096 $25 = $21 / $24;
395097 $26 = $7 + $25;
395098 $27 = (+_log1p($26));
395099 $$0 = $27;
395100 } else {
395101 $$0 = $7;
395102 }
395103 }
395104 } while(0);
395105 $28 = ($2|0)<(0);
395106 $29 = -$$0;
395107 $30 = $28 ? $29 : $$0;
395108 return (+$30);
395109}
395110function _tanh($0) {
395111 $0 = +$0;
395112 var $$0 = 0.0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0, $2 = 0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0, $26 = 0.0;

Callers 1

_asinhFuncFunction · 0.85

Calls 2

_bitshift64LshrFunction · 0.85
_log1pFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…