Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pagghiu/SaneCppLibraries
/ alignSize
Function
alignSize
Libraries/Await/Await.cpp:46–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
}
45
46
static size_t alignSize(size_t value, size_t alignment) { return (value + alignment - 1) & ~(alignment - 1); }
47
48
static bool isPowerOfTwo(size_t value) { return value != 0 and (value & (value - 1)) == 0; }
49
Callers
1
allocateFromBlocks
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected