MCPcopy Create free account
hub / github.com/sql-js/sql.js / _tanh

Function _tanh

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

Source from the content-addressed store, hash-verified

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;
395113 var $27 = 0.0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
395114 sp = STACKTOP;
395115 HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
395116 $2 = HEAP32[tempDoublePtr+4>>2]|0;
395117 $3 = $2 & 2147483647;
395118 HEAP32[tempDoublePtr>>2] = $1;HEAP32[tempDoublePtr+4>>2] = $3;$4 = +HEAPF64[tempDoublePtr>>3];
395119 $5 = ($3>>>0)>(1071748074);
395120 do {
395121 if ($5) {
395122 $6 = ($3>>>0)>(1077149696);
395123 if ($6) {
395124 $7 = 0.0 / $4;
395125 $8 = 1.0 - $7;
395126 $$0 = $8;
395127 break;
395128 } else {
395129 $9 = $4 * 2.0;
395130 $10 = (+_expm1($9));
395131 $11 = $10 + 2.0;
395132 $12 = 2.0 / $11;
395133 $13 = 1.0 - $12;
395134 $$0 = $13;
395135 break;
395136 }
395137 } else {
395138 $14 = ($3>>>0)>(1070618798);
395139 if ($14) {
395140 $15 = $4 * 2.0;
395141 $16 = (+_expm1($15));
395142 $17 = $16 + 2.0;
395143 $18 = $16 / $17;
395144 $$0 = $18;
395145 break;
395146 }
395147 $19 = ($3>>>0)>(1048575);
395148 if ($19) {
395149 $20 = $4 * -2.0;
395150 $21 = (+_expm1($20));
395151 $22 = -$21;
395152 $23 = $21 + 2.0;
395153 $24 = $22 / $23;
395154 $$0 = $24;
395155 } else {
395156 $$0 = $4;
395157 }
395158 }
395159 } while(0);
395160 $25 = ($2|0)<(0);
395161 $26 = -$$0;
395162 $27 = $25 ? $26 : $$0;
395163 return (+$27);
395164}
395165function _strlen($0) {
395166 $0 = $0|0;
395167 var $$0 = 0, $$015$lcssa = 0, $$01519 = 0, $$1$lcssa = 0, $$pn = 0, $$pre = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;

Callers 2

_tanhFuncFunction · 0.85
_cothFuncFunction · 0.85

Calls 1

_expm1Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…