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

Function _varianceFinalize

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

Source from the content-addressed store, hash-verified

9245 return;
9246}
9247function _varianceFinalize($0) {
9248 $0 = $0|0;
9249 var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
9250 var label = 0, sp = 0;
9251 sp = STACKTOP;
9252 $1 = (_sqlite3_aggregate_context($0,0)|0);
9253 $2 = ($1|0)==(0|0);
9254 if (!($2)) {
9255 $3 = ((($1)) + 16|0);
9256 $4 = $3;
9257 $5 = $4;
9258 $6 = HEAP32[$5>>2]|0;
9259 $7 = (($4) + 4)|0;
9260 $8 = $7;
9261 $9 = HEAP32[$8>>2]|0;
9262 $10 = ($9|0)>(0);
9263 $11 = ($6>>>0)>(1);
9264 $12 = ($9|0)==(0);
9265 $13 = $12 & $11;
9266 $14 = $10 | $13;
9267 if ($14) {
9268 $15 = ((($1)) + 8|0);
9269 $16 = +HEAPF64[$15>>3];
9270 $17 = (_i64Add(($6|0),($9|0),-1,-1)|0);
9271 $18 = tempRet0;
9272 $19 = (+($17>>>0)) + (4294967296.0*(+($18|0)));
9273 $20 = $16 / $19;
9274 _sqlite3_result_double($0,$20);
9275 return;
9276 }
9277 }
9278 _sqlite3_result_double($0,0.0);
9279 return;
9280}
9281function _modeStep($0,$1,$2) {
9282 $0 = $0|0;
9283 $1 = $1|0;

Callers

nothing calls this directly

Calls 3

_i64AddFunction · 0.85
_sqlite3_result_doubleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…