Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/react/react
/ getLeadingBit
Function
getLeadingBit
packages/react-reconciler/src/ReactFiberTreeContext.js:224–226 ·
view source on GitHub ↗
(id: number)
Source
from the content-addressed store, hash-verified
222
}
223
224
function
getLeadingBit(id: number) {
225
return
1 << (getBitLength(id) - 1);
226
}
227
228
export
function
popTreeContext(workInProgress: Fiber) {
229
// Restore the previous values.
Callers
1
getTreeId
Function · 0.70
Calls
1
getBitLength
Function · 0.70
Tested by
no test coverage detected