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

Function bitpos

packages/effect/src/internal/hashMap.ts:60–60  ·  view source on GitHub ↗
(hash: number, shift: number)

Source from the content-addressed store, hash-verified

58
59/** @internal */
60const bitpos = (hash: number, shift: number): number => 1 << mask(hash, shift)
61
62/** @internal */
63const index = (bitmap: number, bit: number): number => popcount(bitmap & (bit - 1))

Callers 6

mergeLeavesFunction · 0.85
setMethod · 0.85
getMethod · 0.85
hasMethod · 0.85
setMethod · 0.85
removeMethod · 0.85

Calls 1

maskFunction · 0.85

Tested by

no test coverage detected