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

Function _i64Add

js/sql-debug.js:397388–397399  ·  view source on GitHub ↗
(a, b, c, d)

Source from the content-addressed store, hash-verified

397386function runPostSets() {
397387}
397388function _i64Add(a, b, c, d) {
397389 /*
397390 x = a + b*2^32
397391 y = c + d*2^32
397392 result = l + h*2^32
397393 */
397394 a = a|0; b = b|0; c = c|0; d = d|0;
397395 var l = 0, h = 0;
397396 l = (a + c)>>>0;
397397 h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
397398 return ((tempRet0 = h,l|0)|0);
397399}
397400function _i64Subtract(a, b, c, d) {
397401 a = a|0; b = b|0; c = c|0; d = d|0;
397402 var l = 0, h = 0;

Callers 15

_replicateFuncFunction · 0.85
_padlFuncFunction · 0.85
_padrFuncFunction · 0.85
_padcFuncFunction · 0.85
_varianceStepFunction · 0.85
_stdevFinalizeFunction · 0.85
_varianceFinalizeFunction · 0.85
_modeStepFunction · 0.85
_modeIterateFunction · 0.85
_medianIterateFunction · 0.85
_sqlite3VXPrintfFunction · 0.85
_strAccumFinishReallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…