Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ hashOptimize
Function
hashOptimize
packages/cluster/src/internal/hash.ts:2–2 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
1
/** @internal */
2
export
const
hashOptimize = (n: number): number => (n & 0xbfffffff) | ((n >>> 1) & 0x40000000)
3
4
/** @internal */
5
export
const
hashString = (str: string) => {
Callers
1
hashString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected