MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / safeAdd

Function safeAdd

app/public/socketcluster-client.js:8039–8043  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

8037
8038
8039function safeAdd(x, y) {
8040 const lsw = (x & 0xffff) + (y & 0xffff);
8041 const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
8042 return msw << 16 | lsw & 0xffff;
8043}
8044/*
8045 * Bitwise rotate a 32-bit number to the left.
8046 */

Callers 2

wordsToMd5Function · 0.85
md5cmnFunction · 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…