MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / isPowerOfTwo

Function isPowerOfTwo

Libraries/Await/Await.cpp:48–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46static size_t alignSize(size_t value, size_t alignment) { return (value + alignment - 1) & ~(alignment - 1); }
47
48static bool isPowerOfTwo(size_t value) { return value != 0 and (value & (value - 1)) == 0; }
49
50static size_t awaitAllocatorPageSize()
51{

Callers 1

allocateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected