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

Function _cosh

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

Source from the content-addressed store, hash-verified

394448 return (47224|0);
394449}
394450function _cosh($0) {
394451 $0 = +$0;
394452 var $$0 = 0.0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $2 = 0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0;
394453 var sp = 0;
394454 sp = STACKTOP;
394455 HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
394456 $2 = HEAP32[tempDoublePtr+4>>2]|0;
394457 $3 = $2 & 2147483647;
394458 HEAP32[tempDoublePtr>>2] = $1;HEAP32[tempDoublePtr+4>>2] = $3;$4 = +HEAPF64[tempDoublePtr>>3];
394459 $5 = ($3>>>0)<(1072049730);
394460 do {
394461 if ($5) {
394462 $6 = ($3>>>0)<(1045430272);
394463 if ($6) {
394464 $$0 = 1.0;
394465 } else {
394466 $7 = (+_expm1($4));
394467 $8 = $7 * $7;
394468 $9 = $7 + 1.0;
394469 $10 = $9 * 2.0;
394470 $11 = $8 / $10;
394471 $12 = $11 + 1.0;
394472 $$0 = $12;
394473 }
394474 } else {
394475 $13 = ($3>>>0)<(1082535490);
394476 if ($13) {
394477 $14 = (+Math_exp((+$4)));
394478 $15 = 1.0 / $14;
394479 $16 = $14 + $15;
394480 $17 = $16 * 0.5;
394481 $$0 = $17;
394482 break;
394483 } else {
394484 $18 = (+___expo2($4));
394485 $$0 = $18;
394486 break;
394487 }
394488 }
394489 } while(0);
394490 return (+$$0);
394491}
394492function _expm1($0) {
394493 $0 = +$0;
394494 var $$ = 0.0, $$0 = 0.0, $$0105 = 0, $$0106 = 0.0, $$0107 = 0.0, $$0109 = 0.0, $$0110 = 0.0, $$0111 = 0.0, $$1 = 0, $$1108 = 0.0, $$sink = 0.0, $$sink$v = 0.0, $$sink112 = 0.0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;

Callers 1

_coshFuncFunction · 0.85

Calls 2

_expm1Function · 0.85
___expo2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…