MCPcopy Create free account
hub / github.com/browserify/crypto-browserify / safe_add

Function safe_add

example/bundle.js:535–539  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

533 * to work around bugs in some JS interpreters.
534 */
535 function safe_add(x, y) {
536 var lsw = (x & 0xFFFF) + (y & 0xFFFF);
537 var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
538 return (msw << 16) | (lsw & 0xFFFF);
539 }
540
541 /*
542 * Bitwise rotate a 32-bit number to the left.

Callers 1

core_sha1Function · 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…