MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / RoundUp

Method RoundUp

base/MemoryPool.h:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60 private:
61 int RoundUp(int size, int align = __align) {
62 return ((size + align - 1) & ~(align - 1));
63 }
64
65 int FreeListIndex(int size, int align = __align) {
66 return (size + align - 1) / align - 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected