MCPcopy 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
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

Callers 1

allocateFromBlocksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected