Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LadybugDB/ladybug
/ prevPowerOfTwo
Function
prevPowerOfTwo
src/common/utils.cpp:18–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
}
17
18
uint64_t prevPowerOfTwo(uint64_t v) {
19
return nextPowerOfTwo((v / 2) + 1);
20
}
21
22
bool isLittleEndian() {
23
// Little endian arch stores the least significant value in the lower bytes.
Callers
1
initializeHashTable
Method · 0.85
Calls
1
nextPowerOfTwo
Function · 0.85
Tested by
no test coverage detected