MCPcopy 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
18uint64_t prevPowerOfTwo(uint64_t v) {
19 return nextPowerOfTwo((v / 2) + 1);
20}
21
22bool isLittleEndian() {
23 // Little endian arch stores the least significant value in the lower bytes.

Callers 1

initializeHashTableMethod · 0.85

Calls 1

nextPowerOfTwoFunction · 0.85

Tested by

no test coverage detected