MCPcopy
hub / github.com/theajack/disable-devtool / safe_add

Function safe_add

src/utils/md5.ts:151–156  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

149 * to work around bugs in some JS interpreters.
150 */
151function safe_add (x: number, y: number)
152{
153 const lsw = (x & 0xFFFF) + (y & 0xFFFF);
154 const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
155 return (msw << 16) | (lsw & 0xFFFF);
156}
157
158
159/*

Callers 2

core_md5Function · 0.85
md5_cmnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected