MCPcopy Create free account
hub / github.com/Effect-TS/effect / hashOptimize

Function hashOptimize

packages/effect/src/unstable/cluster/internal/hash.ts:14–14  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

12 */
13/** @internal */
14export const hashOptimize = (n: number): number => (n & 0xbfffffff) | ((n >>> 1) & 0x40000000)
15
16/** @internal */
17export const hashString = (str: string) => {

Callers 1

hashStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected